Skip to content

Commit d16fc03

Browse files
committed
Add VeriFast CI
1 parent 566cd13 commit d16fc03

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

.github/workflows/verifast.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: VeriFast
2+
3+
on:
4+
workflow_dispatch:
5+
merge_group:
6+
pull_request:
7+
branches: [ main ]
8+
push:
9+
paths:
10+
- 'library/**'
11+
- '.github/workflows/verifast.yml'
12+
- 'verifast-proofs/**'
13+
14+
defaults:
15+
run:
16+
shell: bash
17+
18+
jobs:
19+
check-verifast-on-std:
20+
name: Verify std library
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout Repository
25+
uses: actions/checkout@v4
26+
27+
- name: Install VeriFast
28+
run: |
29+
cd ~
30+
curl -OL https://github.com/verifast/verifast/releases/download/24.12/verifast-24.12-linux.tar.gz
31+
# https://github.com/verifast/verifast/attestations/3689894
32+
echo '51bebf990f31666abcd3675000e7714ef79b417390e930953ef25383e8d59421 verifast-24.12-linux.tar.gz' | shasum -a 256 -c
33+
tar xf verifast-24.12-linux.tar.gz
34+
35+
- name: Install the Rust toolchain used by VeriFast
36+
run: rustup toolchain install nightly-2024-11-23
37+
38+
- name: Run VeriFast Verification
39+
run: |
40+
export PATH=~/verifast-24.12/bin:$PATH
41+
cd verifast-proofs
42+
mysh check-verifast-proofs.mysh

verifast-proofs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.stripped.rs
2+
*.computed.diff

verifast-proofs/check-verifast-proofs.mysh

Whitespace-only changes.

0 commit comments

Comments
 (0)