Skip to content

Commit 1b9e5fc

Browse files
Update Swatinem/rust-cache action to v2.9.2 (#27568)
## Summary Update `Swatinem/rust-cache` from v2.9.1 to v2.9.2 across all GitHub Actions workflows. The new release fixes cache cleanup for packages whose library target differs from the package name and preserves `cdylib`, `rlib`, `dylib`, and `staticlib` artifacts. This affects `libcst`: its library target is `libcst_native` and uses `cdylib`/`rlib`, so our current CI recompiles it even after an exact cache hit. The update also fixes Windows cache-path handling and supports the Cargo v2 build-directory layout. Existing Cargo profiles and workflow cache configuration are unchanged.
1 parent c4e86fc commit 1b9e5fc

8 files changed

Lines changed: 28 additions & 28 deletions

‎.github/workflows/ci.yaml‎

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ jobs:
289289
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
290290
with:
291291
persist-credentials: false
292-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
292+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
293293
with:
294294
save-if: ${{ github.ref == 'refs/heads/main' }}
295295
- name: "Install Rust toolchain"
@@ -311,7 +311,7 @@ jobs:
311311
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
312312
with:
313313
persist-credentials: false
314-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
314+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
315315
with:
316316
save-if: ${{ github.ref == 'refs/heads/main' }}
317317
- name: "cargo publish dry-run"
@@ -330,7 +330,7 @@ jobs:
330330
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
331331
with:
332332
persist-credentials: false
333-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
333+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
334334
with:
335335
shared-key: ruff-linux-debug
336336
save-if: ${{ github.ref == 'refs/heads/main' }}
@@ -397,7 +397,7 @@ jobs:
397397
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
398398
with:
399399
persist-credentials: false
400-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
400+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
401401
with:
402402
save-if: ${{ github.ref == 'refs/heads/main' }}
403403
- name: "Install Rust toolchain"
@@ -436,7 +436,7 @@ jobs:
436436
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
437437
with:
438438
persist-credentials: false
439-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
439+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
440440
with:
441441
save-if: ${{ github.ref == 'refs/heads/main' }}
442442
# Fix for https://github.com/Swatinem/rust-cache/issues/341
@@ -467,7 +467,7 @@ jobs:
467467
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
468468
with:
469469
persist-credentials: false
470-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
470+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
471471
with:
472472
save-if: ${{ github.ref == 'refs/heads/main' }}
473473
- name: "Install Rust toolchain"
@@ -507,7 +507,7 @@ jobs:
507507
with:
508508
file: "Cargo.toml"
509509
field: "workspace.package.rust-version"
510-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
510+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
511511
with:
512512
save-if: ${{ github.ref == 'refs/heads/main' }}
513513
- name: "Install Rust toolchain"
@@ -531,7 +531,7 @@ jobs:
531531
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
532532
with:
533533
persist-credentials: false
534-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
534+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
535535
with:
536536
workspaces: "fuzz -> target"
537537
save-if: ${{ github.ref == 'refs/heads/main' }}
@@ -561,7 +561,7 @@ jobs:
561561
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
562562
with:
563563
version: "0.12.1"
564-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
564+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
565565
with:
566566
shared-key: ruff-linux-debug
567567
save-if: false
@@ -597,7 +597,7 @@ jobs:
597597
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
598598
with:
599599
persist-credentials: false
600-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
600+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
601601
with:
602602
save-if: ${{ github.ref == 'refs/heads/main' }}
603603
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
@@ -657,7 +657,7 @@ jobs:
657657
- name: "Install mold"
658658
uses: rui314/setup-mold@9c9c13bf4c3f1adef0cc596abc155580bcb04444 # v1
659659

660-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
660+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
661661
with:
662662
shared-key: ruff-linux-debug
663663
save-if: false
@@ -764,7 +764,7 @@ jobs:
764764
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
765765
with:
766766
version: "0.12.1"
767-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
767+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
768768
with:
769769
save-if: ${{ github.ref == 'refs/heads/main' }}
770770
- name: "Install Rust toolchain"
@@ -830,7 +830,7 @@ jobs:
830830
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
831831
with:
832832
version: "0.12.1"
833-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
833+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
834834
with:
835835
save-if: ${{ github.ref == 'refs/heads/main' }}
836836
- name: "Install Rust toolchain"
@@ -855,7 +855,7 @@ jobs:
855855
with:
856856
python-version: ${{ env.PYTHON_VERSION }}
857857
architecture: x64
858-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
858+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
859859
with:
860860
save-if: ${{ github.ref == 'refs/heads/main' }}
861861
- name: "Prep README.md"
@@ -910,7 +910,7 @@ jobs:
910910
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
911911
with:
912912
persist-credentials: false
913-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
913+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
914914
with:
915915
save-if: ${{ github.ref == 'refs/heads/main' }}
916916
- name: "Install Rust toolchain"
@@ -942,7 +942,7 @@ jobs:
942942
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
943943
with:
944944
persist-credentials: false
945-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
945+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
946946
with:
947947
save-if: ${{ github.ref == 'refs/heads/main' }}
948948
- name: "Install Rust toolchain"
@@ -969,7 +969,7 @@ jobs:
969969
with:
970970
persist-credentials: false
971971

972-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
972+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
973973
with:
974974
shared-key: ruff-linux-debug
975975
save-if: false
@@ -1027,7 +1027,7 @@ jobs:
10271027
persist-credentials: false
10281028
- name: "Install Rust toolchain"
10291029
run: rustup target add wasm32-unknown-unknown
1030-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
1030+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
10311031
with:
10321032
save-if: ${{ github.ref == 'refs/heads/main' }}
10331033
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
@@ -1072,7 +1072,7 @@ jobs:
10721072
with:
10731073
persist-credentials: false
10741074

1075-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
1075+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
10761076
with:
10771077
save-if: ${{ github.ref == 'refs/heads/main' }}
10781078
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
@@ -1114,7 +1114,7 @@ jobs:
11141114
with:
11151115
persist-credentials: false
11161116

1117-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
1117+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
11181118
with:
11191119
save-if: ${{ github.ref == 'refs/heads/main' }}
11201120

@@ -1231,7 +1231,7 @@ jobs:
12311231
with:
12321232
persist-credentials: false
12331233

1234-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
1234+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
12351235
with:
12361236
save-if: ${{ github.ref == 'refs/heads/main' }}
12371237
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0

‎.github/workflows/daily_fuzz.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
run: rustup show
4444
- name: "Install mold"
4545
uses: rui314/setup-mold@9c9c13bf4c3f1adef0cc596abc155580bcb04444 # v1
46-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
46+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
4747
- name: Build ruff
4848
# A debug build means the script runs slower once it gets started,
4949
# but this is outweighed by the fact that a release build takes *much* longer to compile in CI

‎.github/workflows/memory_report.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Fetch full history without tags
5454
run: git -C ruff fetch --no-tags --filter=blob:none --unshallow origin
5555

56-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
56+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
5757
with:
5858
workspaces: "ruff"
5959

‎.github/workflows/publish-docs.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
- name: "Install Rust toolchain"
6666
run: rustup show
6767

68-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
68+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
6969

7070
- name: "Install dependencies"
7171
run: pip install -r docs/requirements.txt

‎.github/workflows/sync_typeshed.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ jobs:
257257
run: |
258258
git config --global user.name typeshedbot
259259
git config --global user.email '<>'
260-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
260+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
261261
with:
262262
# Reuse the cache populated by the `cargo test (linux)` CI job on `main`.
263263
shared-key: ruff-linux-debug

‎.github/workflows/ty-ecosystem-analyzer.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
persist-credentials: false
6161
ref: ${{ github.sha }}
6262

63-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
63+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
6464
with:
6565
lookup-only: false
6666

‎.github/workflows/ty-ecosystem-report.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
enable-cache: true
3939
version: "0.12.1"
4040

41-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
41+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
4242
with:
4343
lookup-only: false
4444

‎.github/workflows/typing_conformance.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
path: typing
6262
persist-credentials: false
6363

64-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
64+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
6565
with:
6666
workspaces: "ruff"
6767

0 commit comments

Comments
 (0)