Skip to content

Commit

Permalink
ci: Split cache into more parts (#1730)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo authored Mar 22, 2023
1 parent 81cc2d5 commit 04ca6e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ runs:
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}${{ inputs.cache-key }}
restore-keys: |
${{ runner.os }}-cargo
${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-cargo
- name: Setup rust related environment variables
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Setup Rust toolchain
uses: ./.github/actions/setup
with:
cache-key: "-services-all"
cache-key: "-check"

- name: Check license headers
uses: korandoru/hawkeye@v1.5.4
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
- name: Setup Rust toolchain
uses: ./.github/actions/setup
with:
cache-key: "-services-all"
cache-key: "-build-all-features"
- name: Build
run: cargo build --all-features

Expand Down

0 comments on commit 04ca6e5

Please sign in to comment.