From 18577973f8921fb78d892e7cad5f37bb9d09ee32 Mon Sep 17 00:00:00 2001 From: viyatb-oai Date: Wed, 13 May 2026 17:49:10 -0700 Subject: [PATCH] ci: stop caching Cargo executables Co-authored-by: Codex noreply@openai.com --- .github/workflows/rust-ci-full.yml | 12 +----------- .github/workflows/rust-ci.yml | 6 +----- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/rust-ci-full.yml b/.github/workflows/rust-ci-full.yml index de37faa4ca..f7f8546c8a 100644 --- a/.github/workflows/rust-ci-full.yml +++ b/.github/workflows/rust-ci-full.yml @@ -62,19 +62,15 @@ jobs: with: toolchain: nightly-2025-09-18 components: llvm-tools-preview, rustc-dev, rust-src - - name: Cache cargo-dylint tooling - id: cargo_dylint_cache + - name: Cache cargo-dylint dependencies uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 with: path: | - ~/.cargo/bin/cargo-dylint - ~/.cargo/bin/dylint-link ~/.cargo/registry/index ~/.cargo/registry/cache ~/.cargo/git/db key: argument-comment-lint-${{ runner.os }}-${{ env.CARGO_DYLINT_VERSION }}-${{ env.DYLINT_LINK_VERSION }}-${{ hashFiles('tools/argument-comment-lint/Cargo.lock', 'tools/argument-comment-lint/rust-toolchain', '.github/workflows/rust-ci.yml', '.github/workflows/rust-ci-full.yml') }} - name: Install cargo-dylint tooling - if: ${{ steps.cargo_dylint_cache.outputs.cache-hit != 'true' }} shell: bash run: | cargo install --locked cargo-dylint --version "$CARGO_DYLINT_VERSION" @@ -293,11 +289,9 @@ jobs: uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 with: path: | - ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ - ${{ github.workspace }}/.cargo-home/bin/ ${{ github.workspace }}/.cargo-home/registry/index/ ${{ github.workspace }}/.cargo-home/registry/cache/ ${{ github.workspace }}/.cargo-home/git/db/ @@ -477,11 +471,9 @@ jobs: uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 with: path: | - ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ - ${{ github.workspace }}/.cargo-home/bin/ ${{ github.workspace }}/.cargo-home/registry/index/ ${{ github.workspace }}/.cargo-home/registry/cache/ ${{ github.workspace }}/.cargo-home/git/db/ @@ -609,7 +601,6 @@ jobs: uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 with: path: | - ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ @@ -702,7 +693,6 @@ jobs: uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 with: path: | - ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 75c5c33601..2e521bb682 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -117,19 +117,15 @@ jobs: --component rust-src \ --no-self-update rustup default nightly-2025-09-18 - - name: Cache cargo-dylint tooling - id: cargo_dylint_cache + - name: Cache cargo-dylint dependencies uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 with: path: | - ~/.cargo/bin/cargo-dylint - ~/.cargo/bin/dylint-link ~/.cargo/registry/index ~/.cargo/registry/cache ~/.cargo/git/db key: argument-comment-lint-${{ runner.os }}-${{ env.CARGO_DYLINT_VERSION }}-${{ env.DYLINT_LINK_VERSION }}-${{ hashFiles('tools/argument-comment-lint/Cargo.lock', 'tools/argument-comment-lint/rust-toolchain', '.github/workflows/rust-ci.yml', '.github/workflows/rust-ci-full.yml') }} - name: Install cargo-dylint tooling - if: ${{ steps.cargo_dylint_cache.outputs.cache-hit != 'true' }} shell: bash run: | cargo install --locked cargo-dylint --version "$CARGO_DYLINT_VERSION"