Update Cargo.lock for risc0 build and tests #84
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: test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo test | |
| - run: cargo test --manifest-path=./zkvm/risc0/Cargo.toml -- --nocapture | |
| - run: cargo fmt --all --check && cargo clippy --locked --tests -- -D warnings | |
| - run: cargo fmt --all --check && cargo clippy --locked --tests -- -D warnings | |
| working-directory: zkvm/risc0 | |
| reproducible-build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install rzup | |
| run: | | |
| curl -L https://risczero.com/install | bash | |
| echo "$HOME/.risc0/bin" >> $GITHUB_PATH | |
| - name: Install RISC Zero toolchain | |
| run: rzup install rust && rzup install cargo-risczero 1.2.4 | |
| - run: . "/home/runner/.bashrc" && ZKDCAP_RISC0_BUILD=1 cargo build -r --manifest-path=./zkvm/risc0/Cargo.toml | |
| - run: git diff --exit-code | |
| test-i686: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: docker run -v .:/root/zkdcap -w /root/zkdcap -t i386/rust:1.84 cargo test |