ci: add back target as cache key (#879)
This commit is contained in:
parent
8101e6fa56
commit
5f849e81e6
|
@ -87,6 +87,8 @@ jobs:
|
|||
- name: Enable Rust cache
|
||||
uses: Swatinem/rust-cache@22c9328bcba27aa81a32b1bef27c7e3c78052531 # 2.0.1
|
||||
if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} # If it is a PR, only if not a fork
|
||||
with:
|
||||
key: ${{ matrix.info.target }}
|
||||
|
||||
- name: Check cargo fmt
|
||||
run: cargo fmt --all -- --check
|
||||
|
@ -228,6 +230,8 @@ jobs:
|
|||
- name: Enable Rust cache
|
||||
uses: Swatinem/rust-cache@22c9328bcba27aa81a32b1bef27c7e3c78052531 # 2.0.1
|
||||
if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} # If it is a PR, only if not a fork
|
||||
with:
|
||||
key: ${{ matrix.info.target }}
|
||||
|
||||
- name: Check
|
||||
uses: ClementTsang/cargo-action@v0.0.3
|
||||
|
|
Loading…
Reference in New Issue