Fixed install verus script #3
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: Verify Erdos Graph | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install Rust toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: 1.93.0 | |
| profile: minimal | |
| override: true | |
| - name: Cache Verus installation | |
| id: cache-verus | |
| uses: actions/cache@v4 | |
| with: | |
| path: tools/verus-bin | |
| key: verus-${{ runner.os }}-${{ hashFiles('tools/install-verus.sh') }} | |
| - name: Install Verus | |
| if: steps.cache-verus.outputs.cache-hit != 'true' | |
| run: bash tools/install-verus.sh | |
| - name: Add Verus to PATH | |
| run: echo "$GITHUB_WORKSPACE/tools/verus-bin" >> $GITHUB_PATH | |
| - name: Verify Verus installation | |
| run: verus --version | |
| - name: Run verification | |
| run: make verify | |
| - name: Upload verification results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: verification-results | |
| path: | | |
| verified/ | |
| !verified/target/ |