verification triggered by label #2
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: Verification | |
| # Run when manually triggered or when a PR is labeled with 'run-verification' | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: [labeled] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| check: | |
| name: Verification Check | |
| runs-on: ubuntu-latest | |
| # Only run on labeled PRs if the label is 'run-verification' | |
| if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'run-verification' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: Install verus toolchains | |
| run: ./scripts/vinstall.sh | |
| - name: Format spec/proof code | |
| run: | | |
| verusfmt --check `find ./ -name *.verus.rs` --verus-only | |
| - name: Verify svsm with verus | |
| run: cargo verify | |
| working-directory: kernel | |
| - name: Verify extra proof libs with verus | |
| run: cargo verify | |
| working-directory: verify_proof |