(github/ci) add toml-translator step to CI #37
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: CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- prepare-litmus-toml-translator | ||
# pull_request: {} | ||
# cancel in-progress job when a new push is performed | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
# version: [4.12.0, 4.14.1] | ||
version: [4.14.1] | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: System dependencies (ubuntu) | ||
run: | | ||
sudo apt update | ||
sudo apt install build-essential gcc-aarch64-linux-gnu qemu-system-aarch64 | ||
- name: Setup rustup | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
-name: Setup rems-project dependencies | ||
steps: | ||
run: | | ||
mkdir -p deps/rems-project deps/litmus-tests | ||
cd deps/rems-project | ||
git clone https://github.com/rems-project/isla | ||
git clone https://github.com/rems-project/isla-snapshots | ||
cd ../litmus-tests | ||
git clone https://github.com/litmus-tests/litmus-tests-armv8a-system-vmsa/ | ||
- name: Build harness | ||
run: | | ||
make build | ||
- name: Check for compiler warnings | ||
run: | | ||
make -B -s check | ||
- name: Run unittests | ||
run: | | ||
./qemu_unittests --no-test-linear-concretization | tee log | ||
[ $(tail -c -2 log) -eq 0 ] | ||
- name: Build tools | ||
run: | | ||
make tools | ||
- name: Run TOML translator | ||
run: | | ||
make translate-toml-tests REMSORGDIR=deps/rems-project LITMUSORGDIR=deps/litmus-tests | ||
- name: Compile translated tests | ||
run: | | ||
# should automatically discover and build new tests | ||
make build | ||
# validate by checking an arbitrarily-picked test was actually compiled | ||
[ -f ./bin/litmus/litmus_tests/generated/pgtable/CoWinvT+po.litmus.toml.o ] |