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 7dc50c5
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 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 @@ -24,12 +25,32 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
with:
path: rems-project/

- name: System dependencies (ubuntu)
run: |
sudo apt update
sudo apt install build-essential gcc-aarch64-linux-gnu qemu-system-aarch64
- name: Get rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable

- name: Setup rems-project dependencies
run: |
cd ${GITHUB_WORKSPACE}/rems-project
git clone https://github.com/rems-project/isla
git clone https://github.com/rems-project/isla-snapshots
- name: Setup litmus-test org dependencies
run: |
mkdir -p ${GITHUB_WORKSPACE}/litmus-tests
cd ${GITHUB_WORKSPACE}/litmus-tests
git clone https://github.com/litmus-tests/litmus-tests-armv8a-system-vmsa/
- name: Build harness
run: |
make build
Expand All @@ -42,3 +63,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
- 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 7dc50c5

Please sign in to comment.