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