Skip to content

Commit c279dda

Browse files
committed
Cache all crates for citool
Even the local workspace ones, since they almost never change.
1 parent 1434630 commit c279dda

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,21 @@ jobs:
6464
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
6565
with:
6666
workspaces: src/ci/citool
67+
cache-all-crates: true
68+
key: ${{ hashFiles('src/ci/citool/**') }}
6769
- name: Test citool
6870
# Only test citool on the auto branch, to reduce latency of the calculate matrix job
6971
# on PR/try builds.
7072
if: ${{ github.ref == 'refs/heads/auto' }}
7173
run: |
7274
cd src/ci/citool
73-
CARGO_INCREMENTAL=0 cargo test
75+
cargo test
7476
- name: Calculate the CI job matrix
7577
env:
7678
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
7779
run: |
7880
cd src/ci/citool
79-
CARGO_INCREMENTAL=0 cargo run calculate-job-matrix >> $GITHUB_OUTPUT
81+
cargo run calculate-job-matrix >> $GITHUB_OUTPUT
8082
id: jobs
8183
job:
8284
name: ${{ matrix.full_name }}

0 commit comments

Comments
 (0)