-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first attempt at building cargo-risczero from main
- Loading branch information
Showing
2 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: cargo risczero install | ||
description: Install cargo risczero, build toolchains, and r0vm. | ||
|
||
inputs: | ||
ref: | ||
description: 'Git reference to pull from risc0/risc0 and build' | ||
required: true | ||
type: string | ||
toolchain-version: | ||
description: 'Version of the RISC Zero toolchains to install' | ||
required: true | ||
features: | ||
description: 'Comma separated list of feature flags to set when building cargo risczero' | ||
required: false | ||
default: 'default' | ||
type: string | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: checkout risc0 | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'risc0/risc0' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
path: 'tmp/risc0' | ||
ref: ${{ inputs.ref }} | ||
lfs: true | ||
- name: install cargo-risczero | ||
run: cargo install --path risc0/cargo-risczero --no-default-features --features "${{ input.features }}" | ||
working-directory: tmp/risc0 | ||
- name: install toolchains | ||
run: cargo risczero install | ||
- name: cleanup | ||
run: rm -rf tmp |
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