From 594e26d2818c5ce5b9a31c2d9b0590dfbefbebd3 Mon Sep 17 00:00:00 2001 From: Santo Shakil Date: Thu, 23 Jul 2026 03:41:34 +0600 Subject: [PATCH] ci: cache cargo for the native core job --- .github/workflows/test.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c2f02d147a..46251b1ff8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -103,6 +103,17 @@ jobs: github_token: ${{ steps.token.outputs.token }} working_directory: ./native + - name: Cache Cargo + uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + native/target + key: native-cargo-${{ runner.os }}-${{ hashFiles('native/Cargo.lock', 'native/crates/immich_core_ffi/rust-toolchain.toml') }} + restore-keys: | + native-cargo-${{ runner.os }}- + - name: Check formatting run: cargo fmt --all --check