Linux #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linux | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: '37 3 * * 5' | |
jobs: | |
# gcc ######################################################################## | |
gcc: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
compiler: ['5', '12'] | |
fail-fast: false | |
steps: | |
- name: APT Update | |
run: | | |
echo 'deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ bionic main' | sudo tee -a /etc/apt/sources.list | |
echo 'deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ bionic universe' | sudo tee -a /etc/apt/sources.list | |
sudo apt update | |
- name: Checkout CXON | |
uses: actions/checkout@v3 | |
with: | |
repository: oknenavin/cxon | |
ref: master | |
path: cxon | |
- name: Install CXON | |
run: sudo make -C cxon install | |
- name: Checkout I2O | |
uses: actions/checkout@v3 | |
with: | |
path: i2o | |
- name: Compiler setup | |
run: sudo apt install gcc-${{ matrix.compiler }} g++-${{ matrix.compiler }} | |
- name: Check | |
env: | |
CXX: g++-${{ matrix.compiler }} | |
CXXFLAGS: -std=c++11 | |
run: | | |
cd i2o | |
make -j check | |
sudo make install | |
stat -t /usr/local/bin/json2cbor | |
stat -t /usr/local/bin/json2json | |
stat -t /usr/local/bin/cbor2json | |
# clang ###################################################################### | |
clang: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
compiler: ['4.0', '15'] | |
fail-fast: false | |
steps: | |
- name: APT Update | |
run: | | |
echo 'deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ bionic main' | sudo tee -a /etc/apt/sources.list | |
echo 'deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ bionic universe' | sudo tee -a /etc/apt/sources.list | |
echo 'deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ focal main' | sudo tee -a /etc/apt/sources.list | |
echo 'deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ focal universe' | sudo tee -a /etc/apt/sources.list | |
sudo apt update | |
- name: Checkout CXON | |
uses: actions/checkout@v3 | |
with: | |
repository: oknenavin/cxon | |
ref: master | |
path: cxon | |
- name: Install CXON | |
run: sudo make -C cxon install | |
- name: Checkout I2O | |
uses: actions/checkout@v3 | |
with: | |
path: i2o | |
- name: Compiler setup | |
run: sudo apt install clang-${{ matrix.compiler }} | |
- name: Check | |
env: | |
CXX: clang++-${{ matrix.compiler }} | |
CXXFLAGS: -std=c++11 | |
run: | | |
cd i2o | |
make -j check | |
sudo make install | |
stat -t /usr/local/bin/json2cbor | |
stat -t /usr/local/bin/json2json | |
stat -t /usr/local/bin/cbor2json |