Skip to content

Commit 1d52436

Browse files
authoredJan 22, 2024
ci: restore-keys を追加 (#195)
1 parent 4d4ad2f commit 1d52436

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
 

‎.github/workflows/ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
~/.cargo/git/db/
3131
target/
3232
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock') }}
33+
restore-keys: |
34+
${{ runner.os }}-cargo-clippy-
3335
- name: Clippy
3436
run: cargo clippy -- --deny warnings
3537

@@ -75,6 +77,8 @@ jobs:
7577
~/.cargo/git/db/
7678
target/
7779
key: ${{ runner.os }}-${{ matrix.job.target }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
80+
restore-keys: |
81+
${{ runner.os }}-${{ matrix.job.target }}-cargo-build-
7882
- name: Install Rust toolchain
7983
uses: dtolnay/rust-toolchain@stable
8084
with:
@@ -104,6 +108,8 @@ jobs:
104108
~/.cargo/git/db/
105109
target/
106110
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
111+
restore-keys: |
112+
${{ runner.os }}-cargo-test-
107113
- name: Test
108114
run: cargo test --all-targets --all-features
109115

‎.github/workflows/release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ jobs:
5151
~/.cargo/git/db/
5252
target/
5353
key: ${{ runner.os }}-${{ matrix.job.target }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
54+
restore-keys: |
55+
${{ runner.os }}-${{ matrix.job.target }}-cargo-build-
5456
- name: Install Rust toolchain
5557
uses: dtolnay/rust-toolchain@stable
5658
with:

0 commit comments

Comments
 (0)
Please sign in to comment.