Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VeriFast CI #239

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/verifast.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: VeriFast
feliperodri marked this conversation as resolved.
Show resolved Hide resolved

on:
workflow_dispatch:
merge_group:
pull_request:
branches: [ main ]
push:
paths:
- 'library/**'
- '.github/workflows/verifast.yml'
- 'verifast-proofs/**'

defaults:
run:
shell: bash

jobs:
check-verifast-on-std:
name: Verify std library
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install VeriFast
run: |
cd ~
curl -OL https://github.com/verifast/verifast/releases/download/24.12/verifast-24.12-linux.tar.gz
# https://github.com/verifast/verifast/attestations/3689894
echo '51bebf990f31666abcd3675000e7714ef79b417390e930953ef25383e8d59421 verifast-24.12-linux.tar.gz' | shasum -a 256 -c
tar xf verifast-24.12-linux.tar.gz

- name: Install the Rust toolchain used by VeriFast
run: rustup toolchain install nightly-2024-11-23

- name: Run VeriFast Verification
run: |
export PATH=~/verifast-24.12/bin:$PATH
cd verifast-proofs
mysh check-verifast-proofs.mysh
2 changes: 2 additions & 0 deletions verifast-proofs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.stripped.rs
*.computed.diff
Empty file.
Loading