feat(ci): try to cache less aggressively
This commit is contained in:
parent
1f0f40b9c8
commit
61c4738471
|
|
@ -80,10 +80,17 @@ jobs:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry
|
~/.cargo/registry
|
||||||
~/.cargo/git
|
~/.cargo/git
|
||||||
target
|
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
restore-keys: |
|
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
|
- name: Build backend
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
|
|
|
||||||
|
|
@ -125,9 +125,8 @@ jobs:
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: target
|
path: target
|
||||||
key: ${{ runner.os }}-cargo-target-release-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('**/*.rs') }}
|
key: ${{ runner.os }}-cargo-target-release-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-target-release-${{ hashFiles('**/Cargo.lock') }}-
|
|
||||||
${{ runner.os }}-cargo-target-release-
|
${{ runner.os }}-cargo-target-release-
|
||||||
|
|
||||||
- name: Build readur binary
|
- name: Build readur binary
|
||||||
|
|
|
||||||
|
|
@ -61,9 +61,8 @@ jobs:
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: target
|
path: target
|
||||||
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('**/*.rs') }}
|
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.lock') }}-
|
|
||||||
${{ runner.os }}-cargo-target-
|
${{ runner.os }}-cargo-target-
|
||||||
|
|
||||||
- name: Run Rust unit tests - lib only
|
- name: Run Rust unit tests - lib only
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue