Skip to content

Commit

Permalink
ci: Use Kani with Nix
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <nick@nickspinale.com>
  • Loading branch information
nspin committed Jun 5, 2024
1 parent b2a7676 commit fbb7724
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,16 @@ jobs:
name: Check Kani proofs
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v14
with:
name: coliasgroup
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- uses: actions/checkout@v4
- name: Check Kani proofs
run: make -C hacking/kani/docker check
run: make check-kani-proofs
deploy-docs:
name: Deploy docs
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ witness-fast-tests:
$(nix_build) -A witnessFastTests --no-out-link
$(try_restore_terminal)

.PHONY: check-kani-proofs
check-kani-proofs:
$(run_in_nix_shell) "cargo kani -p sel4-bitfield-ops"

.PHONY: everything-except-non-incremental
everything-except-non-incremental:
$(nix_build) -A everythingExceptNonIncremental --no-out-link
Expand Down

0 comments on commit fbb7724

Please sign in to comment.