4
4
push :
5
5
branches :
6
6
- master
7
+ - prepare-litmus-toml-translator
7
8
# pull_request: {}
8
9
9
10
# cancel in-progress job when a new push is performed
@@ -24,21 +25,62 @@ jobs:
24
25
timeout-minutes : 5
25
26
steps :
26
27
- uses : actions/checkout@v3
28
+ with :
29
+ path : rems-project/
27
30
28
31
- name : System dependencies (ubuntu)
29
32
run : |
30
33
sudo apt update
31
34
sudo apt install build-essential gcc-aarch64-linux-gnu qemu-system-aarch64
32
35
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
+
33
54
- name : Build harness
55
+ working-directory : rems-project/system-litmus-harness
34
56
run : |
35
57
make build
36
58
37
59
- name : Check for compiler warnings
60
+ working-directory : rems-project/system-litmus-harness
38
61
run : |
39
62
make -B -s check
40
63
41
64
- name : Run unittests
65
+ working-directory : rems-project/system-litmus-harness
42
66
run : |
43
67
./qemu_unittests --no-test-linear-concretization | tee log
44
68
[ $(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