@@ -144,123 +144,3 @@ jobs:
144
144
branch : gh-pages
145
145
folder : docs/book/
146
146
single-commit : true
147
-
148
- releasebundle-macos :
149
- runs-on : ${{ matrix.os }}
150
- strategy :
151
- matrix :
152
- os : [macos-12]
153
- include :
154
- - os : macos-12
155
- artifact : kani-latest-x86_64-apple-darwin.tar.gz
156
- steps :
157
- - name : Checkout Kani
158
- uses : actions/checkout@v3
159
-
160
- - name : Setup Kani Dependencies
161
- uses : ./.github/actions/setup
162
- with :
163
- os : ${{ matrix.os }}
164
-
165
- - name : Build release bundle
166
- run : |
167
- cargo bundle -- latest
168
- cargo package -p kani-verifier
169
-
170
- # We can't run macos in a container, so we can only test locally.
171
- # Hopefully any dependency issues won't be unique to macos.
172
- - name : Local install test
173
- if : ${{ matrix.os == 'macos-12' }}
174
- run : |
175
- cargo install --path ./target/package/kani-verifier-*[^e]
176
- cargo-kani setup --use-local-bundle ./${{ matrix.artifact }}
177
- (cd tests/cargo-kani/simple-lib && cargo kani)
178
- (cd tests/cargo-kani/simple-visualize && cargo kani)
179
- (cd tests/cargo-kani/build-rs-works && cargo kani)
180
-
181
- - name : Upload artifact
182
- uses : actions/upload-artifact@v3
183
- with :
184
- name : ${{ matrix.artifact }}
185
- path : ${{ matrix.artifact }}
186
- if-no-files-found : error
187
- # Aggressively short retention: we don't really need these
188
- retention-days : 3
189
-
190
- releasebundle-ubuntu :
191
- runs-on : ubuntu-20.04
192
- container :
193
- image : ubuntu:18.04
194
- volumes :
195
- - /usr/local:/mnt/host-local
196
- steps :
197
- - name : Remove unnecessary software to free up disk space
198
- run : |
199
- # inspired by https://github.com/easimon/maximize-build-space/blob/master/action.yml
200
- df -h
201
- rm -r /mnt/host-local/lib/android /mnt/host-local/.ghcup
202
- df -h
203
- # This is required before checkout because the container does not
204
- # have Git installed, so cannot run checkout action. The checkout
205
- # action requires Git >=2.18, so use the Git maintainers' PPA.
206
- - name : Install system dependencies
207
- run : |
208
- apt-get update
209
- apt-get install -y software-properties-common apt-utils
210
- add-apt-repository ppa:git-core/ppa
211
- apt-get update
212
- apt-get install -y \
213
- build-essential bash-completion curl lsb-release sudo g++ gcc flex \
214
- bison make patch git
215
- curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL \
216
- https://get.docker.com -o /tmp/install-docker.sh
217
- bash /tmp/install-docker.sh
218
-
219
- - name : Checkout Kani
220
- uses : actions/checkout@v3
221
-
222
- - name : Setup Kani Dependencies
223
- uses : ./.github/actions/setup
224
- with :
225
- os : ubuntu-18.04
226
-
227
- - name : Build release bundle
228
- run : |
229
- PATH=/github/home/.cargo/bin:$PATH cargo bundle -- latest
230
- PATH=/github/home/.cargo/bin:$PATH cargo package -p kani-verifier
231
-
232
- # -v flag: Use docker socket from host as we're running docker-in-docker
233
- - name : Build container test
234
- run : |
235
- for tag in 20-04 20-04-alt 18-04; do
236
- >&2 echo "Building test container for ${tag}"
237
- docker build -t kani-$tag -f scripts/ci/Dockerfile.bundle-test-ubuntu-$tag .
238
- done
239
-
240
- - name : Run installed tests
241
- run : |
242
- for tag in kani-20-04 kani-20-04-alt kani-18-04; do
243
- for dir in simple-lib simple-visualize build-rs-works simple-kissat; do
244
- >&2 echo "Tag $tag: running test $dir"
245
- docker run -v /var/run/docker.sock:/var/run/docker.sock \
246
- -w /tmp/kani/tests/cargo-kani/$dir $tag cargo kani
247
- done
248
- docker run -v /var/run/docker.sock:/var/run/docker.sock \
249
- $tag cargo-kani setup \
250
- --use-local-bundle ./kani-latest-x86_64-unknown-linux-gnu.tar.gz
251
- done
252
-
253
- # While the above test OS issues, now try testing with nightly as
254
- # default:
255
- docker run -v /var/run/docker.sock:/var/run/docker.sock \
256
- -w /tmp/kani/tests/cargo-kani/simple-lib kani-20-04 \
257
- bash -c "rustup default nightly && cargo kani"
258
-
259
- - name : Upload artifact
260
- uses : actions/upload-artifact@v3
261
- with :
262
- name : kani-latest-x86_64-unknown-linux-gnu.tar.gz
263
- path : kani-latest-x86_64-unknown-linux-gnu.tar.gz
264
- if-no-files-found : error
265
- # Aggressively short retention: we don't really need these
266
- retention-days : 3
0 commit comments