From 5ecada7646b473d42bae8e38fc963979506c1203 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Mon, 2 Feb 2026 13:44:40 -0600 Subject: [PATCH] cache improvements in ci --- .github/workflows/ci.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e05efd..27c406c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,18 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Mount Cargo target + uses: useblacksmith/stickydisk@v1 + with: + key: ${{ github.repository }}-cargo-target + path: ./target + + - name: Mount Cargo registry + uses: useblacksmith/stickydisk@v1 + with: + key: ${{ github.repository }}-cargo-registry + path: ~/.cargo/registry + - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable with: @@ -44,13 +56,6 @@ jobs: packages: protobuf-compiler lld version: 1.0 - - name: Rust cache - uses: Swatinem/rust-cache@v2 - with: - shared-key: "rust-cache" - cache-on-failure: true - cache-all-crates: true - - name: Check run: cargo check --release