Skip to content

Commit

Permalink
With input
Browse files Browse the repository at this point in the history
  • Loading branch information
jfldde committed Oct 25, 2024
1 parent f89b810 commit 4335c8f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/install-risc0/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: 'Install risc0'
description: 'Installs risc0 toolchain'

inputs:
github_token:
description: 'GitHub token for authentication'
required: true

runs:
using: "composite"
steps:
Expand All @@ -12,5 +17,5 @@ runs:
- name: Install risc0-zkvm toolchain
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ inputs.github_token }}
run: cargo risczero install --version r0.1.79.0-2
10 changes: 10 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ jobs:
uses: Swatinem/rust-cache@v2
- name: Install risc0
uses: ./.github/actions/install-risc0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build citrea
run: make build-release
env:
Expand Down Expand Up @@ -123,6 +125,8 @@ jobs:
uses: Swatinem/rust-cache@v2
- name: Install risc0
uses: ./.github/actions/install-risc0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Check TOML
uses: dprint/check@v2.2
- name: Run lint
Expand Down Expand Up @@ -156,6 +160,8 @@ jobs:
uses: Swatinem/rust-cache@v2
- name: Install risc0
uses: ./.github/actions/install-risc0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Run cargo-udeps
env:
RUSTFLAGS: -A warnings
Expand Down Expand Up @@ -189,6 +195,8 @@ jobs:
- uses: taiki-e/install-action@cargo-llvm-cov
- name: Install risc0
uses: ./.github/actions/install-risc0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache ethereum-tests
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -351,6 +359,8 @@ jobs:
uses: Swatinem/rust-cache@v2
- name: Install risc0
uses: ./.github/actions/install-risc0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# `cargo-nextest` is much faster than standard `cargo test`.
- uses: taiki-e/install-action@nextest
- name: Cache ethereum-tests
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/nightly_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
- name: Install risc0
uses: ./.github/actions/install-risc0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build Project
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
uses: Swatinem/rust-cache@v2
- name: Install risc0
uses: ./.github/actions/install-risc0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache ethereum-tests
uses: actions/cache@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
- name: Install risc0
uses: ./.github/actions/install-risc0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build Project
env:
Expand Down Expand Up @@ -70,6 +72,8 @@ jobs:
- name: Install risc0
uses: ./.github/actions/install-risc0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Project
env:
REPR_GUEST_BUILD: 1
Expand Down

0 comments on commit 4335c8f

Please sign in to comment.