Skip to content

Commit

Permalink
(github/ci) add toml-translator step to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bensimner committed May 19, 2024
1 parent b991613 commit dd66ec4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- prepare-litmus-toml-translator
# pull_request: {}

# cancel in-progress job when a new push is performed
Expand All @@ -30,6 +31,22 @@ jobs:
sudo apt update
sudo apt install build-essential gcc-aarch64-linux-gnu qemu-system-aarch64
-name: Setup rust
steps:
- uses: actions-rs/toolchain@v1
with:
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
Expand All @@ -42,3 +59,18 @@ jobs:
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 ]

0 comments on commit dd66ec4

Please sign in to comment.