Skip to content

Commit 6bc90c6

Browse files
committed
ci: keep toolchain components out of build jobs
1 parent 1de7b76 commit 6bc90c6

5 files changed

Lines changed: 1 addition & 18 deletions

File tree

.github/workflows/build-artifacts.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ jobs:
6969
- name: Setup Rust
7070
uses: ./.github/actions/setup-rust
7171
with:
72-
components: rustfmt
7372
targets: ${{ matrix.rustup-target }}
7473

7574
- name: Setup cargo-zigbuild
@@ -92,7 +91,6 @@ jobs:
9291
with:
9392
shared-key: release-${{ runner.os }}-${{ matrix.rust-target }}
9493
key: native-${{ hashFiles('Cargo.toml', 'Cargo.lock', 'build.rs', 'rust-toolchain.toml', 'src/**', 'crates/**', 'xtask/**', 'scripts/build-artifact.sh') }}
95-
cache-workspace-crates: true
9694
cache-on-failure: true
9795

9896
- name: Setup Node
@@ -194,8 +192,6 @@ jobs:
194192
- name: Setup Rust
195193
if: steps.playground-wasm-cache.outputs.cache-hit != 'true'
196194
uses: ./.github/actions/setup-rust
197-
with:
198-
components: rustfmt
199195

200196
- name: Setup sccache
201197
if: steps.playground-wasm-cache.outputs.cache-hit != 'true'

.github/workflows/ci.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ jobs:
8181
with:
8282
shared-key: rust-${{ runner.os }}
8383
key: workspace-${{ hashFiles('Cargo.toml', 'Cargo.lock', 'build.rs', 'rust-toolchain.toml', 'src/**', 'crates/**', 'xtask/**') }}
84-
cache-workspace-crates: true
8584
cache-on-failure: true
8685
- name: Format Check
8786
run: cargo fmt --all -- --check
@@ -101,8 +100,6 @@ jobs:
101100
- uses: actions/checkout@v4
102101
- name: Install Rust
103102
uses: ./.github/actions/setup-rust
104-
with:
105-
components: rustfmt
106103
- name: Setup sccache
107104
uses: ./.github/actions/setup-sccache
108105
with:
@@ -113,7 +110,6 @@ jobs:
113110
with:
114111
shared-key: rust-${{ runner.os }}
115112
key: workspace-${{ hashFiles('Cargo.toml', 'Cargo.lock', 'build.rs', 'rust-toolchain.toml', 'src/**', 'crates/**', 'xtask/**') }}
116-
cache-workspace-crates: true
117113
cache-on-failure: true
118114
- name: Test
119115
run: cargo test --workspace
@@ -165,8 +161,6 @@ jobs:
165161
- name: Install Rust
166162
if: steps.playground-wasm-cache.outputs.cache-hit != 'true'
167163
uses: ./.github/actions/setup-rust
168-
with:
169-
components: rustfmt
170164
- name: Setup sccache
171165
if: steps.playground-wasm-cache.outputs.cache-hit != 'true'
172166
uses: ./.github/actions/setup-sccache
@@ -179,7 +173,6 @@ jobs:
179173
with:
180174
shared-key: vscode-web-wasm-${{ runner.os }}-${{ env.EMSDK_VERSION }}
181175
key: wasm-src-${{ hashFiles('Cargo.toml', 'Cargo.lock', 'build.rs', 'rust-toolchain.toml', 'src/**', 'crates/**', 'playground/scripts/build-vide-wasm.mjs', 'playground/scripts/script-utils.mjs', '.github/actions/setup-emscripten/**', '.github/actions/setup-rust/**') }}
182-
cache-workspace-crates: true
183176
cache-on-failure: true
184177
- name: Install Emscripten SDK
185178
if: steps.playground-wasm-cache.outputs.cache-hit != 'true'

.github/workflows/deploy-docs.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,6 @@ jobs:
345345
- name: Install Rust
346346
if: steps.playground-wasm-cache.outputs.cache-hit != 'true'
347347
uses: ./.github/actions/setup-rust
348-
with:
349-
components: rustfmt
350348

351349
- name: Setup sccache
352350
if: steps.playground-wasm-cache.outputs.cache-hit != 'true'
@@ -361,7 +359,6 @@ jobs:
361359
with:
362360
shared-key: docs-wasm-${{ runner.os }}-${{ env.EMSDK_VERSION }}
363361
key: wasm-src-${{ hashFiles('Cargo.toml', 'Cargo.lock', 'build.rs', 'rust-toolchain.toml', 'src/**', 'crates/**', 'playground/scripts/build-vide-wasm.mjs', 'playground/scripts/script-utils.mjs', '.github/actions/setup-emscripten/**', '.github/actions/setup-rust/**') }}
364-
cache-workspace-crates: true
365362
cache-on-failure: true
366363

367364
- name: Install Emscripten SDK

.github/workflows/docs-preview.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ jobs:
9393
- name: Install Rust
9494
if: steps.playground-wasm-cache.outputs.cache-hit != 'true'
9595
uses: ./.github/actions/setup-rust
96-
with:
97-
components: rustfmt
9896

9997
- name: Setup sccache
10098
if: steps.playground-wasm-cache.outputs.cache-hit != 'true'
@@ -109,7 +107,6 @@ jobs:
109107
with:
110108
shared-key: docs-wasm-${{ runner.os }}-${{ env.EMSDK_VERSION }}
111109
key: wasm-src-${{ hashFiles('Cargo.toml', 'Cargo.lock', 'build.rs', 'rust-toolchain.toml', 'src/**', 'crates/**', 'playground/scripts/build-vide-wasm.mjs', 'playground/scripts/script-utils.mjs', '.github/actions/setup-emscripten/**', '.github/actions/setup-rust/**') }}
112-
cache-workspace-crates: true
113110
cache-on-failure: true
114111

115112
- name: Install Emscripten SDK

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
22
channel = "nightly-2026-05-24"
3-
components = ["clippy", "rustfmt"]
3+
components = ["rustfmt"]
44
profile = "minimal"

0 commit comments

Comments
 (0)