Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
94b28bf
Bump actions/setup-node from 4 to 5 in the actions group (#259)
dependabot[bot] Sep 9, 2025
5467cca
Update README.md (#234)
Propfend Sep 18, 2025
3c68c31
Bump @types/node from 24.2.1 to 24.3.0 in the dev-minor group (#258)
dependabot[bot] Sep 18, 2025
5abb1e2
update dependencies, prepare for release
Swatinem Sep 18, 2025
f13886b
2.8.1
Swatinem Sep 18, 2025
7bd5339
ci: address lint findings, add zizmor workflow (#262)
woodruffw Sep 23, 2025
14cb63c
Bump @vercel/ncc from 0.38.3 to 0.38.4 (#263)
dependabot[bot] Sep 23, 2025
2a0d153
Bump taiki-e/install-action from 2.62.2 to 2.62.13 in the actions group
dependabot[bot] Sep 29, 2025
90fd061
Merge pull request #265 from Swatinem/dependabot/github_actions/actio…
github-actions[bot] Sep 29, 2025
eb57cd6
Bump @actions/cache from 4.0.5 to 4.1.0 in the prd-minor group (#267)
dependabot[bot] Sep 30, 2025
a1f9490
Bump @types/node from 24.5.2 to 24.6.0 in the dev-minor group (#266)
dependabot[bot] Sep 30, 2025
bf8c594
Bump taiki-e/install-action from 2.62.13 to 2.62.21 in the actions group
dependabot[bot] Oct 6, 2025
b08fc8f
Merge pull request #271 from Swatinem/dependabot/github_actions/actio…
github-actions[bot] Oct 6, 2025
20d8423
Bump typescript from 5.9.2 to 5.9.3 in the dev-patch group (#269)
dependabot[bot] Oct 7, 2025
51dda28
Bump @types/node from 24.6.0 to 24.7.0 in the dev-minor group (#270)
dependabot[bot] Oct 7, 2025
2245981
Bump taiki-e/install-action from 2.62.21 to 2.62.28 in the actions group
dependabot[bot] Oct 13, 2025
9416228
Merge pull request #274 from Swatinem/dependabot/github_actions/actio…
github-actions[bot] Oct 13, 2025
27f6075
feat: Implement ability to disable adding job ID + rust environment h…
Ryan-Brice Nov 3, 2025
54f6936
Bump @types/node from 24.7.0 to 24.9.0 in the dev-minor group (#275)
dependabot[bot] Nov 3, 2025
b28feea
Bump the actions group across 1 directory with 3 updates (#278)
dependabot[bot] Nov 3, 2025
7ec422f
Bump taiki-e/install-action from 2.62.39 to 2.62.45 in the actions group
dependabot[bot] Nov 3, 2025
a84bfdc
Merge pull request #280 from Swatinem/dependabot/github_actions/actio…
github-actions[bot] Nov 3, 2025
07caf06
Bump taiki-e/install-action from 2.62.45 to 2.62.49 in the actions group
dependabot[bot] Nov 10, 2025
972b315
Merge pull request #283 from Swatinem/dependabot/github_actions/actio…
github-actions[bot] Nov 10, 2025
3aaed55
Bump the actions group with 2 updates
dependabot[bot] Nov 17, 2025
c911900
Merge pull request #284 from Swatinem/dependabot/github_actions/actio…
github-actions[bot] Nov 17, 2025
e306f83
Don't overwrite env for cargo-metadata call (#285)
MaeIsBad Nov 18, 2025
f2a41b7
Bump @types/node from 24.9.0 to 24.10.0 in the dev-minor group (#282)
dependabot[bot] Nov 18, 2025
c071727
Bump @actions/io from 1.1.3 to 2.0.0 in the prd-major group (#281)
dependabot[bot] Nov 18, 2025
8930d9c
Bump the actions group with 3 updates (#288)
dependabot[bot] Nov 26, 2025
2ea64ef
Bump smol-toml from 1.4.2 to 1.5.2 in the prd-minor group (#287)
dependabot[bot] Nov 26, 2025
779680d
2.8.2
Swatinem Nov 26, 2025
151eeee
Add support for running rust-cache commands from within a Nix shell (…
marc0246 Dec 1, 2025
73cfdf1
Bump taiki-e/install-action from 2.62.57 to 2.62.60 in the actions group
dependabot[bot] Dec 2, 2025
42c5594
Merge pull request #291 from Swatinem/dependabot/github_actions/actio…
github-actions[bot] Dec 2, 2025
e73b99e
Bump the actions group across 1 directory with 5 updates (#296)
dependabot[bot] Dec 16, 2025
6cda4ba
Bump the prd-major group with 3 updates (#294)
dependabot[bot] Dec 16, 2025
0aa729b
Bump @types/node from 24.10.1 to 25.0.2 in the dev-major group (#295)
dependabot[bot] Dec 16, 2025
5e4a767
Consider all installed toolchains in cache key (#293)
tamird Dec 16, 2025
11da852
Compare case-insenitively for full cache key match (#303)
kbriggs Jan 12, 2026
1a83841
Migrate to `node24` runner (#314)
rhysd Mar 11, 2026
68500c1
Bump the actions group across 1 directory with 7 updates (#312)
dependabot[bot] Mar 11, 2026
390157d
Bump the prd-minor group across 1 directory with 2 updates (#307)
dependabot[bot] Mar 11, 2026
8a02ed5
Bump @types/node from 25.0.2 to 25.2.2 in the dev-minor group (#309)
dependabot[bot] Mar 11, 2026
bf71d02
bump dependencies and rebuild
Swatinem Mar 12, 2026
c676846
2.9.0
Swatinem Mar 12, 2026
3d1fa46
add changelog
Swatinem Mar 12, 2026
781e8d9
try reverting pipeline change
Swatinem Mar 12, 2026
c193711
2.9.1
Swatinem Mar 12, 2026
b13bf3f
Merge tag 'v2.9.1' into sync/upstream-v2.9.1
guptaankit015 Mar 26, 2026
508a180
chore: rebuild dist and lockfile after upstream sync
guptaankit015 Mar 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,21 @@ on:
- "**.md"
workflow_dispatch:

permissions: {}

jobs:
check-dist:
if: github.repository == 'WarpBuilds/rust-cache'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Setup Node.js 20.x
uses: actions/setup-node@v4
- name: Setup Node.js 24.x
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: 20.x
node-version: 24.x
cache: npm

- name: Install dependencies
Expand All @@ -39,7 +43,7 @@ jobs:
fi
id: diff

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: coverage

on: [push, pull_request]

permissions: {}

jobs:
coverage:
if: github.repository == 'WarpBuilds/rust-cache'
Expand All @@ -17,11 +19,15 @@ jobs:
CARGO_TERM_COLOR: always

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- run: rustup toolchain install stable --profile minimal --component llvm-tools-preview --no-self-update

- uses: taiki-e/install-action@cargo-llvm-cov
- uses: taiki-e/install-action@64c5c20c872907b6f7cd50994ac189e7274160f2 # v2.68.26
with:
tool: cargo-llvm-cov

- uses: ./
with:
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,25 @@
name: Dependabot Automation
on: pull_request

permissions:
contents: write
pull-requests: write
permissions: {}

jobs:
automerge:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'WarpBuilds/rust-cache'
permissions:
contents: write # for pushing commits
pull-requests: write # for merging PRs
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'Swatinem/rust-cache'
steps:
- name: Fetch metadata
id: metadata
uses: dependabot/fetch-metadata@v2
uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2.5.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/checkout@v5
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 2
persist-credentials: false
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
- name: Check if package-lock.json has been changed
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
Expand All @@ -35,9 +37,9 @@ jobs:
fi
- name: Setup node if necessary
if: steps.npm.outputs.changed != ''
uses: actions/setup-node@v4
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: 20.x
node-version: 24.x
cache: npm
- name: Re-generate and commit dist/ if changed
id: amend
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/git-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: git-registry

on: [push, pull_request]

permissions: {}

jobs:
git-registry:
if: github.repository == 'WarpBuilds/rust-cache'
Expand All @@ -18,7 +20,9 @@ jobs:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: git

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- run: rustup toolchain install stable --profile minimal --no-self-update

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: install

on: [push, pull_request]

permissions: {}

jobs:
install:
if: github.repository == 'WarpBuilds/rust-cache'
Expand All @@ -17,7 +19,9 @@ jobs:
CARGO_TERM_COLOR: always

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- run: rustup toolchain install stable --profile minimal --no-self-update

Expand Down
74 changes: 74 additions & 0 deletions .github/workflows/multi-job-cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: multi-job-cache

on: [push, pull_request]

permissions: {}

jobs:
multi-job-cache-1:
if: github.repository == 'Swatinem/rust-cache'
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

name: Test multi-job cache (1) on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

env:
CARGO_TERM_COLOR: always

steps:
- name: checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: install rust toolchain
run: rustup toolchain install stable --profile minimal --target wasm32-unknown-unknown --no-self-update

- name: cache
uses: ./
with:
workspaces: |
tests
add-job-id-key: "false"
add-rust-environment-hash-key: "false"

- name: cargo check (tests)
working-directory: tests
run: cargo check

multi-job-cache-2:
if: github.repository == 'Swatinem/rust-cache'
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

name: Test multi-job cache (2) on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

env:
CARGO_TERM_COLOR: always

steps:
- name: checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: install rust toolchain
run: rustup toolchain install stable --profile minimal --target wasm32-unknown-unknown --no-self-update

- name: cache
uses: ./
with:
workspaces: |
tests/wasm-workspace
add-job-id-key: "false"
add-rust-environment-hash-key: "false"

- name: cargo check (tests/wasm-workspace)
working-directory: tests/wasm-workspace
run: cargo check
33 changes: 33 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: nix

on: [push, pull_request]

permissions: {}

jobs:
nix:
if: github.repository == 'Swatinem/rust-cache'
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]

name: Test Nix on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- uses: cachix/install-nix-action@1ca7d21a94afc7c957383a2d217460d980de4934 # v31.10.1

- uses: ./
with:
workspaces: tests
cmd-format: nix develop ./tests -c {0}

- run: |
nix develop -c cargo check
nix develop -c cargo test
working-directory: tests
6 changes: 5 additions & 1 deletion .github/workflows/simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: simple

on: [push, pull_request]

permissions: {}

jobs:
simple:
if: github.repository == 'WarpBuilds/rust-cache'
Expand All @@ -17,7 +19,9 @@ jobs:
CARGO_TERM_COLOR: always

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- run: rustup toolchain install stable --profile minimal --no-self-update

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/target-dir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: target-dir

on: [push, pull_request]

permissions: {}

jobs:
target-dir:
if: github.repository == 'WarpBuilds/rust-cache'
Expand All @@ -17,7 +19,9 @@ jobs:
CARGO_TERM_COLOR: always

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- run: rustup toolchain install stable --profile minimal --no-self-update

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/workspaces.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: workspaces

on: [push, pull_request]

permissions: {}

jobs:
workspaces:
if: github.repository == 'WarpBuilds/rust-cache'
Expand All @@ -17,7 +19,9 @@ jobs:
CARGO_TERM_COLOR: always

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- run: rustup toolchain install stable --profile minimal --target wasm32-unknown-unknown --no-self-update

Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: GitHub Actions Security Analysis with zizmor 🌈

on:
push:
branches: ["main"]
pull_request:
branches: ["**"]

permissions: {}

jobs:
zizmor:
name: Run zizmor 🌈
runs-on: ubuntu-latest
permissions:
security-events: write # for uploading results to the Security tab
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Run zizmor 🌈
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
target/
src/*.js

# Editors
.idea/
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## 2.9.0

- Update to `node24`
- Support running from within a `nix` shell
- Consider all installed toolchains for cache key
- Use case-insensitive comparison to determine exact cache hit

## 2.8.2

- Don't overwrite env for cargo-metadata call

## 2.8.1

- Set empty `CARGO_ENCODED_RUSTFLAGS` when retrieving metadata
- Various dependency updates

## 2.8.0

- Add support for `warpbuild` cache provider
Expand Down
Loading