diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 14cc2ec5..5b6ce51e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -94,6 +94,12 @@ jobs: - name: Install active toolchain 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 env: RISC0_SKIP_BUILD: "1" @@ -123,6 +129,12 @@ jobs: - name: Install active toolchain 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 run: cargo install --locked cargo-nextest @@ -190,6 +202,12 @@ jobs: - name: Install active toolchain 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 run: cargo install --locked cargo-nextest @@ -223,6 +241,12 @@ jobs: - name: Install active toolchain 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 env: RUST_LOG: "info" @@ -240,6 +264,12 @@ jobs: - 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 run: cargo install --locked just