feat(ci): try to cache less aggressively

This commit is contained in:
perf3ct 2025-10-11 15:15:28 -07:00
parent 1f0f40b9c8
commit 61c4738471
No known key found for this signature in database
GPG Key ID: 569C4EEC436F5232
3 changed files with 12 additions and 7 deletions

View File

@ -80,10 +80,17 @@ jobs:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
${{ runner.os }}-cargo-registry-
- name: Cache target directory
uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-cargo-target-release-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-target-release-
- name: Build backend
run: cargo build --release

View File

@ -125,9 +125,8 @@ jobs:
uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-cargo-target-release-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('**/*.rs') }}
key: ${{ runner.os }}-cargo-target-release-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-target-release-${{ hashFiles('**/Cargo.lock') }}-
${{ runner.os }}-cargo-target-release-
- name: Build readur binary

View File

@ -61,9 +61,8 @@ jobs:
uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('**/*.rs') }}
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.lock') }}-
${{ runner.os }}-cargo-target-
- name: Run Rust unit tests - lib only