Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/actions/install-pico/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Install Pico"
description: "Install Pico Toolchain"

runs:
using: "composite"
steps:
- name: Install Pico
shell: bash
run: |
rustup install nightly-2025-08-04
rustup component add rust-src --toolchain nightly-2025-08-04
rustup component add clippy --toolchain nightly-2025-08-04
cargo +nightly-2025-08-04 install --git https://github.com/brevis-network/pico --tag v1.1.9 pico-cli
18 changes: 15 additions & 3 deletions .github/workflows/pr-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
features: ["", "l2", "l2,sp1", "l2,risc0", "l2,zisk", "sp1", "risc0", "zisk"]
features: ["", "l2", "l2,sp1", "l2,risc0", "l2,zisk", "l2,pico", "sp1", "risc0", "zisk", "pico"]
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down Expand Up @@ -48,6 +48,10 @@ jobs:
if: contains(matrix.features, 'zisk')
uses: ./.github/actions/install-zisk

- name: Install Pico
if: contains(matrix.features, 'pico')
uses: ./.github/actions/install-pico

- name: cargo fmt --check --all
if: matrix.features == '' # Run only without features because it's redundant to run it on all jobs
run: cargo fmt --check --all
Expand All @@ -62,7 +66,11 @@ jobs:
if [ -n "${FEATURE_ARGS}" ]; then
args+=("--features" "${FEATURE_ARGS},ci")
fi
cargo check "${args[@]}"
if [[ "${FEATURE_ARGS}" == *"pico"* ]]; then
cargo +nightly-2025-08-04 check "${args[@]}"
else
cargo check "${args[@]}"
fi

- name: cargo clippy
shell: bash
Expand All @@ -74,7 +82,11 @@ jobs:
if [ -n "${FEATURE_ARGS}" ]; then
args+=("--features" "${FEATURE_ARGS},ci")
fi
cargo clippy "${args[@]}" -- -D warnings
if [[ "${FEATURE_ARGS}" == *"pico"* ]]; then
cargo +nightly-2025-08-04 clippy "${args[@]}" -- -D warnings
else
cargo clippy "${args[@]}" -- -D warnings
fi

all-lints:
name: Lint
Expand Down
Loading