feat(ci): try to cache less aggressively
This commit is contained in:
parent
1f0f40b9c8
commit
61c4738471
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue