From c279ddaa2de53a9de72f01b0467ee9c4f060f55e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Thu, 12 Jun 2025 06:58:20 +0200 Subject: [PATCH] Cache all crates for citool Even the local workspace ones, since they almost never change. --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 841bc39bf1e6f..ac6261fedb9bb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,19 +64,21 @@ jobs: uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8 with: workspaces: src/ci/citool + cache-all-crates: true + key: ${{ hashFiles('src/ci/citool/**') }} - name: Test citool # Only test citool on the auto branch, to reduce latency of the calculate matrix job # on PR/try builds. if: ${{ github.ref == 'refs/heads/auto' }} run: | cd src/ci/citool - CARGO_INCREMENTAL=0 cargo test + cargo test - name: Calculate the CI job matrix env: COMMIT_MESSAGE: ${{ github.event.head_commit.message }} run: | cd src/ci/citool - CARGO_INCREMENTAL=0 cargo run calculate-job-matrix >> $GITHUB_OUTPUT + cargo run calculate-job-matrix >> $GITHUB_OUTPUT id: jobs job: name: ${{ matrix.full_name }}