-
Notifications
You must be signed in to change notification settings - Fork 32
180 lines (142 loc) · 4.4 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
name: Uclid CI
on:
push:
branches: master
pull_request:
branches: master
jobs:
test-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache Z3
id: cache-z3
uses: actions/cache@v1
with:
path: z3/
key: ${{ runner.os }}-z3-${{ hashFiles('get-z3-linux.sh') }}-1
- name: Download Z3
if: steps.cache-z3.outputs.cache-hit != 'true'
run: ./get-z3-linux.sh
- name: Add Z3 to Path
run: |
ls $GITHUB_WORKSPACE/z3/bin/
echo "$GITHUB_WORKSPACE/z3/bin/" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GITHUB_WORKSPACE/z3/bin/" >> $GITHUB_ENV
- name: Print Z3 Version
run: z3 --version
- name: Cache CVC5
id: cache-cvc5
uses: actions/cache@v1
with:
path: cvc5/
key: ${{ runner.os }}-cvc5-${{ hashFiles('get-cvc5-linux.sh') }}-1
- name: Download cvc5
if: steps.cache-cvc5.outputs.cache-hit != 'true'
run: ./get-cvc5-linux.sh
- name: Add CVC5 to Path
run: |
ls $GITHUB_WORKSPACE/cvc5/bin/
echo "$GITHUB_WORKSPACE/cvc5/bin/" >> $GITHUB_PATH
- name: Print CVC5 Version
run: cvc5 --version
# - name: Cache Delphi
# id: cache-delphi
# uses: actions/cache@v1
# with:
# path: delphi/
# key: ${{ runner.os }}-delphi-${{ hashFiles('get-delphi-linux.sh') }}-1
- name: Download delphi
# if: steps.cache-delphi.outputs.cache-hit != 'true'
run: ./get-delphi-linux.sh
- name: Add delphi to Path
run: |
ls $GITHUB_WORKSPACE/delphi/bin/
echo "$GITHUB_WORKSPACE/delphi/bin/" >> $GITHUB_PATH
- name: Add oracles to Path
run: |
ls $GITHUB_WORKSPACE/oracles/
echo "$GITHUB_WORKSPACE/oracles/" >> $GITHUB_PATH
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache SBT ivy cache
uses: actions/cache@v1
with:
path: ~/.ivy2/cache
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }}
- name: Cache SBT
uses: actions/cache@v1
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
- name: Compile
run: sbt compile
- name: Test
run: sbt "set fork:=true" test
- name: Package
run: sbt universal:packageBin
test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v10
with:
java-version: [email protected]
- name: Cache Z3
id: cache-z3
uses: actions/cache@v1
with:
path: z3/
key: ${{ runner.os }}-z3-${{ hashFiles('get-z3-macos.sh') }}-1
- name: Create path for Z3
run: sudo mkdir -p /usr/local/lib
- name: Download Z3
if: steps.cache-z3.outputs.cache-hit != 'true'
run: ./get-z3-macos.sh
- name: Add Z3 to Path
run: |
echo "$GITHUB_WORKSPACE/z3/bin/" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GITHUB_WORKSPACE/z3/bin/" >> $GITHUB_ENV
./setup-z3-macos.sh
- name: Print Z3 Version
run: z3 --version
- name: Cache CVC5
id: cache-cvc5
uses: actions/cache@v1
with:
path: cvc5/
key: ${{ runner.os }}-cvc5-${{ hashFiles('get-cvc5-macos.sh') }}-1
- name: Download cvc5
if: steps.cache-cvc5.outputs.cache-hit != 'true'
run: ./get-cvc5-macos.sh
- name: Add CVC5 to Path
run: |
ls $GITHUB_WORKSPACE/cvc5/bin/
echo "$GITHUB_WORKSPACE/cvc5/bin/" >> $GITHUB_PATH
- name: Print CVC5 Version
run: cvc5 --version
# - name: Cache delphi
# id: cache-delphi
# uses: actions/cache@v1
# with:
# path: delphi/
# key: ${{ runner.os }}-delphi-${{ hashFiles('get-delphi-macos.sh') }}-1
- name: Download delphi
# if: steps.cache-delphi.outputs.cache-hit != 'true'
run: ./get-delphi-macos.sh
- name: Add delphi to Path
run: |
ls $GITHUB_WORKSPACE/delphi/bin/
echo "$GITHUB_WORKSPACE/delphi/bin/" >> $GITHUB_PATH
- name: Add oracles to Path
run: |
ls $GITHUB_WORKSPACE/oracles/
echo "$GITHUB_WORKSPACE/oracles/" >> $GITHUB_PATH
- name: Compile
run: sbt compile
- name: Test UCLID
run: sbt "set fork:=true" test
- name: Package UCLID
run: sbt universal:packageBin