This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
imp: add risc0-check
to CI
#4
Workflow file for this run
This file contains 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: Risc0 Compatibility | |
on: | |
pull_request: | |
paths: | |
- .github/workflows/risc0-check.yml | |
- ci/risc0-check/** | |
- '**/Cargo.toml' | |
push: | |
branches: main | |
paths: | |
- .github/workflows/risc0-check.yml | |
- ci/risc0-check/** | |
- '**/Cargo.toml' | |
env: | |
CARGO_PROFILE_DEV_DEBUG: 1 | |
CARGO_PROFILE_RELEASE_DEBUG: 1 | |
CARGO_NET_RETRY: 10 | |
RUSTUP_MAX_RETRIES: 10 | |
RISC0_DEV_MODE: 1 | |
CARGO_NET_GIT_FETCH_WITH_CLI: true | |
jobs: | |
risc0-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SOVEREIGN_DEPLOY_KEY }} | |
- uses: actions/checkout@v3 | |
- name: Cache dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Install cargo-risc0 | |
run: cargo install cargo-risczero | |
- name: Install risc0-zkvm toolchain | |
run: cargo risczero install | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Check Risc0 compatibility | |
run: make check-risc0 |