Refactor/lean4 standard structure #669
Workflow file for this run
This file contains hidden or 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
| name: Formal Verification | |
| on: | |
| push: | |
| branches: [main] | |
| paths: ['GIFT/**', 'GIFTTest/**', 'lakefile.lean', 'lean-toolchain'] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| workflow_call: | |
| jobs: | |
| lean: | |
| name: Lean 4 Verification | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install elan | |
| run: | | |
| curl -sSf https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh | sh -s -- -y | |
| echo "$HOME/.elan/bin" >> $GITHUB_PATH | |
| - name: Cache .lake | |
| uses: actions/cache@v4 | |
| with: | |
| path: .lake | |
| key: lean-${{ hashFiles('lakefile.lean') }} | |
| - name: Build | |
| run: | | |
| lake update | |
| lake exe cache get || true | |
| lake build | |
| - name: Verify zero sorry | |
| run: | | |
| if grep -r "sorry" GIFT/ GIFTTest/ --include="*.lean"; then | |
| echo "ERROR: Found sorry!" | |
| exit 1 | |
| fi |