Skip to content

Commit 78581cf

Browse files
committed
fix: update rust-cache usage to the post 2.0.0 parameter key "workspaces" instead of "workdir"
1 parent e16485e commit 78581cf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

{{cookiecutter.project_name}}/.github/workflows/build-rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Cache Rust dependencies
5858
uses: Swatinem/rust-cache@v2
5959
with:
60-
workdir: rust/
60+
workspaces: "rust/"
6161
key: {{ "${{ matrix.platform.target }}" }}
6262

6363
- name: Set up cross-compilation toolchain (Linux)

{{cookiecutter.project_name}}/.github/workflows/lint-rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Cache Rust dependencies
3737
uses: Swatinem/rust-cache@v2
3838
with:
39-
workdir: rust/
39+
workspaces: "rust/"
4040

4141
- name: Set up uv
4242
uses: astral-sh/setup-uv@v6

{{cookiecutter.project_name}}/.github/workflows/test-rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Cache Rust dependencies
4141
uses: Swatinem/rust-cache@v2
4242
with:
43-
workdir: rust/
43+
workspaces: "rust/"
4444

4545
- name: Set up uv
4646
uses: astral-sh/setup-uv@v6

0 commit comments

Comments
 (0)