Skip to content

Commit

Permalink
Pass github-token as input
Browse files Browse the repository at this point in the history
  • Loading branch information
jfldde committed Sep 16, 2024
1 parent 7b41942 commit 0b1b4e5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/actions/setup-risc0/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: 'Setup RISC-0'
description: 'Setup RISC-0 environment'
inputs:
github-token:
description: 'GitHub token for risc0-zkvm toolchain auth'
required: true
runs:
using: composite
steps:
Expand All @@ -26,4 +30,4 @@ runs:
shell: bash
run: cargo risczero install --version r0.1.79.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ inputs.github-token }}
10 changes: 10 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ jobs:
key: ${{ runner.os }}-cargo-nightly-${{ hashFiles('**/Cargo.lock') }}
- name: Setup RISC-0
uses: ./.github/actions/setup-risc0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build citrea
run: make build-release
env:
Expand Down Expand Up @@ -124,6 +126,8 @@ jobs:
key: ${{ runner.os }}-cargo-nightly-${{ hashFiles('**/Cargo.lock') }}
- name: Setup RISC-0
uses: ./.github/actions/setup-risc0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run lint
run: |
if ! SKIP_GUEST_BUILD=1 make lint ; then
Expand Down Expand Up @@ -151,6 +155,8 @@ jobs:
override: true
- name: Setup RISC-0
uses: ./.github/actions/setup-risc0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run cargo-udeps
env:
RUSTFLAGS: -A warnings
Expand Down Expand Up @@ -185,6 +191,8 @@ jobs:
- uses: taiki-e/install-action@cargo-llvm-cov
- name: Setup RISC-0
uses: ./.github/actions/setup-risc0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache ethereum-tests
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -345,6 +353,8 @@ jobs:
key: ${{ runner.os }}-cargo-nexttest-${{ hashFiles('**/Cargo.lock') }}
- name: Setup RISC-0
uses: ./.github/actions/setup-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

0 comments on commit 0b1b4e5

Please sign in to comment.