|
46 | 46 | id: toolchain |
47 | 47 | with: |
48 | 48 | toolchain: ${{ inputs.rust_version }} |
| 49 | + components: "rustfmt" |
49 | 50 | - name: Run sccache-cache |
50 | 51 | uses: mozilla-actions/[email protected] |
51 | 52 | - name: Build |
|
82 | 83 | id: toolchain |
83 | 84 | with: |
84 | 85 | toolchain: ${{ inputs.rust_version }} |
| 86 | + components: "rustfmt" |
85 | 87 | - name: Install LLVM and Clang |
86 | 88 | uses: KyleMayes/install-llvm-action@v2 |
87 | 89 | with: |
@@ -137,6 +139,7 @@ jobs: |
137 | 139 | with: |
138 | 140 | toolchain: ${{ inputs.rust_version }} |
139 | 141 | targets: ${{ matrix.target }} |
| 142 | + components: "rustfmt" |
140 | 143 | - name: Install deps |
141 | 144 | run: | |
142 | 145 | curl -SL "https://github.com/servo/servo-build-deps/releases/download/msvc-deps/moztools-4.0.zip" --create-dirs -o target/dependencies/moztools.zip |
@@ -199,6 +202,7 @@ jobs: |
199 | 202 | with: |
200 | 203 | toolchain: ${{ inputs.rust_version }} |
201 | 204 | targets: ${{ matrix.target }} |
| 205 | + components: "rustfmt" |
202 | 206 | - name: Build |
203 | 207 | env: |
204 | 208 | ANDROID_NDK_ROOT: ${{ steps.setup-ndk.outputs.ndk-path }} |
@@ -235,6 +239,7 @@ jobs: |
235 | 239 | with: |
236 | 240 | toolchain: ${{ inputs.rust_version }} |
237 | 241 | targets: ${{ matrix.target }} |
| 242 | + components: "rustfmt" |
238 | 243 | - name: Build (arch ${{ matrix.target }} ) |
239 | 244 | env: |
240 | 245 | OHOS_SDK_NATIVE: ${{ steps.setup_sdk.outputs.ohos_sdk_native }} |
@@ -269,6 +274,7 @@ jobs: |
269 | 274 | with: |
270 | 275 | toolchain: "1.85.0" |
271 | 276 | targets: "wasm32-${{ matrix.target }}" |
| 277 | + components: "rustfmt" |
272 | 278 | - uses: bytecodealliance/actions/wasmtime/setup@v1 |
273 | 279 | - name: Install WASI-SDK |
274 | 280 | run: | |
@@ -318,6 +324,7 @@ jobs: |
318 | 324 | with: |
319 | 325 | toolchain: ${{ inputs.rust_version }} |
320 | 326 | targets: ${{ matrix.target }} |
| 327 | + components: "rustfmt" |
321 | 328 | - run: cargo +${{ steps.toolchain.outputs.name }} test --tests --examples --target ${{ matrix.target }} |
322 | 329 |
|
323 | 330 | integrity: |
|
0 commit comments