-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
006e978
commit ba652d9
Showing
3 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * 1' # Run every Monday night at midnight UTC | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
name: Verify | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Verus | ||
run: ./tools/ci-setup-verus.sh | ||
- name: Rust cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: | | ||
${{ github.workspace }}/verus/source -> target | ||
${{ github.workspace }}/verus/tools/vargo -> target | ||
cache-directories: ${{ github.workspace }}/verus/source/target-verus | ||
- name: Verus cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ github.workspace }}/verus | ||
key: ${{ runner.os }}-verus-${{ hashFiles('verus/.git/refs/heads/main') }} | ||
- name: Build Verus | ||
run: ./tools/ci-build-verus.sh | ||
- name: Verify ironsht | ||
run: | | ||
verus --crate-type=dylib --expand-errors --time --no-report-long-running ironsht/src/lib.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
cd verus/source | ||
if [ -f z3 ]; then echo "Z3 already exists"; else ./tools/get-z3.sh; fi | ||
# shellcheck disable=SC1091 | ||
source ../tools/activate | ||
env VERUS_Z3_PATH="$PWD/z3" vargo build --release | ||
|
||
# make verus binary accessible | ||
echo "$PWD/target-verus/release" >>"$GITHUB_PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
git clone \ | ||
--depth 1 \ | ||
--recurse-submodules --shallow-submodules \ | ||
https://github.com/verus-lang/verus | ||
cd verus/source | ||
# trigger toolchain installation | ||
rustc --version | ||
echo "Verus is at $PWD" | ||
echo "Verus is at git revision: $(git rev-parse HEAD)" |