feat(ci): cache rust artifacts

This commit is contained in:
Daniil Polyakov 2026-05-22 19:28:04 +03:00
parent b5cecdebc0
commit adf0d241c8

View File

@ -94,6 +94,12 @@ jobs:
- name: Install active toolchain - name: Install active toolchain
run: rustup install run: rustup install
- name: Restore Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: ci-rust-cache
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Lint workspace - name: Lint workspace
env: env:
RISC0_SKIP_BUILD: "1" RISC0_SKIP_BUILD: "1"
@ -123,6 +129,12 @@ jobs:
- name: Install active toolchain - name: Install active toolchain
run: rustup install run: rustup install
- name: Restore Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: ci-rust-cache
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Install nextest - name: Install nextest
run: cargo install --locked cargo-nextest run: cargo install --locked cargo-nextest
@ -190,6 +202,12 @@ jobs:
- name: Install active toolchain - name: Install active toolchain
run: rustup install run: rustup install
- name: Restore Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: ci-rust-cache
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Install nextest - name: Install nextest
run: cargo install --locked cargo-nextest run: cargo install --locked cargo-nextest
@ -223,6 +241,12 @@ jobs:
- name: Install active toolchain - name: Install active toolchain
run: rustup install run: rustup install
- name: Restore Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: ci-rust-cache
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Test valid proof - name: Test valid proof
env: env:
RUST_LOG: "info" RUST_LOG: "info"
@ -240,6 +264,12 @@ jobs:
- uses: ./.github/actions/install-risc0 - uses: ./.github/actions/install-risc0
- name: Restore Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: ci-rust-cache
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Install just - name: Install just
run: cargo install --locked just run: cargo install --locked just