Skip to content

Commit

Permalink
Speedup CI: Run cargo-update before caching
Browse files Browse the repository at this point in the history
So that it knows which specific version is used to invalidate caching.

Also, on 1.63 fetching from registry is especially slow, running
`cargo +stable update` befoe this can speed it up a little bit.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
  • Loading branch information
NobodyXu committed Mar 2, 2024
1 parent 8bfcb02 commit 887ee76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
shell: bash

- run: cargo +stable update

- uses: Swatinem/rust-cache@v2

- run: cargo test
Expand Down

0 comments on commit 887ee76

Please sign in to comment.