summary refs log tree commit diff
path: root/.github
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2025-04-14 19:40:47 +0200
committerJakub Beránek <berykubik@gmail.com>2025-04-15 10:04:25 +0200
commitc49b0bdb1ad82ec4dd28c616ab08c72b06c81019 (patch)
treed6c27edccbf8e2247b58b9a8c7b1441b6761e2c9 /.github
parent07d3fd1d9b9c1f07475b96a9d168564bf528db68 (diff)
downloadrust-c49b0bdb1ad82ec4dd28c616ab08c72b06c81019.tar.gz
rust-c49b0bdb1ad82ec4dd28c616ab08c72b06c81019.zip
Use `rust-cache` to speed-up `citool` compilation
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 51dd0f81ed1..2e83bbf643f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -53,6 +53,13 @@ jobs:
     steps:
       - name: Checkout the source code
         uses: actions/checkout@v4
+      # Cache citool to make its build faster, as it's in the critical path.
+      # The rust-cache doesn't bleed into the main `job`, so it should not affect any other
+      # Rust compilation.
+      - name: Cache citool
+        uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
+        with:
+          workspaces: src/ci/citool
       - name: Calculate the CI job matrix
         env:
           COMMIT_MESSAGE: ${{ github.event.head_commit.message }}