Skip to content

Commit 4e285b1

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

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yml

Lines changed: 42 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
@@ -24,21 +25,62 @@ jobs:
2425
timeout-minutes: 5
2526
steps:
2627
- uses: actions/checkout@v3
28+
with:
29+
path: rems-project/
2730

2831
- name: System dependencies (ubuntu)
2932
run: |
3033
sudo apt update
3134
sudo apt install build-essential gcc-aarch64-linux-gnu qemu-system-aarch64
3235
36+
- name: Get rust toolchain
37+
uses: actions-rs/toolchain@v1
38+
with:
39+
profile: minimal
40+
toolchain: stable
41+
42+
- name: Setup rems-project dependencies
43+
run: |
44+
cd ${GITHUB_WORKSPACE}/rems-project
45+
git clone https://github.com/rems-project/isla
46+
git clone https://github.com/rems-project/isla-snapshots
47+
48+
- name: Setup litmus-test org dependencies
49+
run: |
50+
mkdir -p ${GITHUB_WORKSPACE}/litmus-tests
51+
cd ${GITHUB_WORKSPACE}/litmus-tests
52+
git clone https://github.com/litmus-tests/litmus-tests-armv8a-system-vmsa/
53+
3354
- name: Build harness
55+
working-directory: rems-project/system-litmus-harness
3456
run: |
3557
make build
3658
3759
- name: Check for compiler warnings
60+
working-directory: rems-project/system-litmus-harness
3861
run: |
3962
make -B -s check
4063
4164
- name: Run unittests
65+
working-directory: rems-project/system-litmus-harness
4266
run: |
4367
./qemu_unittests --no-test-linear-concretization | tee log
4468
[ $(tail -c -2 log) -eq 0 ]
69+
70+
- name: Build tools
71+
working-directory: rems-project/system-litmus-harness
72+
run: |
73+
make tools
74+
75+
- name: Run TOML translator
76+
working-directory: rems-project/system-litmus-harness
77+
run: |
78+
make translate-toml-tests
79+
80+
- name: Compile translated tests
81+
working-directory: rems-project/system-litmus-harness
82+
run: |
83+
# should automatically discover and build new tests
84+
make build
85+
# validate by checking an arbitrarily-picked test was actually compiled
86+
[ -f ./bin/litmus/litmus_tests/generated/pgtable/CoWinvT+po.litmus.toml.o ]

0 commit comments

Comments
 (0)