ci: cache cargo for the native core job

This commit is contained in:
Santo Shakil
2026-07-23 03:41:34 +06:00
parent e29183fd2b
commit 594e26d281
+11
View File
@@ -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