Skip to content

Commit

Permalink
Use ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
WeetHet committed Aug 1, 2024
1 parent 2968759 commit bc9eb16
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/test-dafny.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ name: Test All Dafny Files
on: [push]
jobs:
test:
runs-on: nixery.dev/shell/dafny
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Test All Dafny Files
run: |
for file in $(find . -name '*.dfy'); do
echo "Testing $file"
$DAFNY_HOME/dafny /compile:0 /noVerify /timeLimit:30 /vcsCores:1 /compileTarget:cs "$file"
done
- name: Install Nix
uses: cachix/install-nix-action@v20
- name: Run Dafny Tests
run: nix shell nixpkgs#dafny -c "scripts/dafny-test-all.sh"
9 changes: 9 additions & 0 deletions scripts/dafny-test-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# This script runs all dafny tests in the current directory.

for f in *.dfy
do
echo "Testing $f"
dafny verify --verification-time-limit 10 $f
done

0 comments on commit bc9eb16

Please sign in to comment.