mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-21 22:56:46 +01:00
Improve workspace caching on CI (#1229)
* improve workspace caching This improves workspace caching performance by using the workspace parameter of rust-cache@v2. * apply the same technique here as well
This commit is contained in:
parent
79a0a54bc9
commit
95c6621db9
1 changed files with 8 additions and 2 deletions
10
.github/workflows/CI.yml
vendored
10
.github/workflows/CI.yml
vendored
|
@ -26,7 +26,10 @@ jobs:
|
|||
override: true
|
||||
profile: minimal
|
||||
components: clippy, rustfmt
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: ${{ matrix.pwd }}
|
||||
workspaces: ${{ matrix.pwd }}
|
||||
- name: Check
|
||||
working-directory: ${{ matrix.pwd }}
|
||||
run: |
|
||||
|
@ -220,7 +223,10 @@ jobs:
|
|||
toolchain: beta
|
||||
override: true
|
||||
profile: minimal
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: ${{ matrix.pwd }}
|
||||
workspaces: ${{ matrix.pwd }}
|
||||
- name: Install cargo-sort
|
||||
run: |
|
||||
cargo install cargo-sort
|
||||
|
|
Loading…
Reference in a new issue