Skip to content

Commit 0991d77

Browse files
committed
(github/ci) add toml-translator step to CI
1 parent b991613 commit 0991d77

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
- prepare-litmus-toml-translator
78
# pull_request: {}
89

910
# cancel in-progress job when a new push is performed
@@ -23,22 +24,64 @@ jobs:
2324

2425
timeout-minutes: 5
2526
steps:
27+
- run: mkdir -p rems-project litmus-tests
28+
2629
- uses: actions/checkout@v3
30+
with:
31+
path: rems-project/system-litmus-harness
2732

2833
- name: System dependencies (ubuntu)
2934
run: |
3035
sudo apt update
3136
sudo apt install build-essential gcc-aarch64-linux-gnu qemu-system-aarch64
3237
38+
- name: Get rust toolchain
39+
uses: actions-rs/toolchain@v1
40+
with:
41+
profile: minimal
42+
toolchain: stable
43+
44+
- name: Setup rems-project dependencies
45+
working-directory: rems-project
46+
run: |
47+
git clone https://github.com/rems-project/isla
48+
git clone https://github.com/rems-project/isla-snapshots
49+
50+
- name: Setup litmus-tests org dependencies
51+
working-directory: litmus-tests
52+
run: |
53+
git clone https://github.com/litmus-tests/litmus-tests-armv8a-system-vmsa/
54+
3355
- name: Build harness
56+
working-directory: rems-project/system-litmus-harness
3457
run: |
3558
make build
3659
3760
- name: Check for compiler warnings
61+
working-directory: rems-project/system-litmus-harness
3862
run: |
3963
make -B -s check
4064
4165
- name: Run unittests
66+
working-directory: rems-project/system-litmus-harness
4267
run: |
4368
./qemu_unittests --no-test-linear-concretization | tee log
4469
[ $(tail -c -2 log) -eq 0 ]
70+
71+
- name: Build tools
72+
working-directory: rems-project/system-litmus-harness
73+
run: |
74+
make tools
75+
76+
- name: Run TOML translator
77+
working-directory: rems-project/system-litmus-harness
78+
run: |
79+
make translate-toml-tests
80+
81+
- name: Compile translated tests
82+
working-directory: rems-project/system-litmus-harness
83+
run: |
84+
# should automatically discover and build new tests
85+
make build
86+
# validate by checking an arbitrarily-picked test was actually compiled
87+
[ -f ./bin/litmus/litmus_tests/generated/pgtable/CoWinvT+po.litmus.toml.o ]

0 commit comments

Comments
 (0)