This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
Use git URL for normal cargo build, and vendored file path for Nix build #164
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' | |
- '**/Cargo.lock' | |
push: | |
branches: main | |
paths: | |
- .github/workflows/risc0-check.yml | |
- ci/risc0-check/** | |
- '**/Cargo.toml' | |
- '**/Cargo.lock' | |
env: | |
CARGO_INCREMENTAL: 0 | |
CARGO_PROFILE_DEV_DEBUG: 1 | |
CARGO_PROFILE_RELEASE_DEBUG: 1 | |
CARGO_NET_RETRY: 10 | |
RUSTUP_MAX_RETRIES: 10 | |
jobs: | |
risc0-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Git credentials for private repo | |
run: | | |
git config --global --replace-all \ | |
"url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" \ | |
ssh://[email protected] | |
- name: Cache dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Install cargo-risczero | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: [email protected] | |
- name: Install risc0-zkvm toolchain | |
run: cargo risczero install --version v2024-02-08.1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Check Risc0 compatibility | |
run: make check-risc0 |