Skip to content

Commit e89f5a3

Browse files
authored
CI: Always install rustfmt (#648)
Hopefully this will format bindings. Signed-off-by: Sam <[email protected]>
1 parent d2783b7 commit e89f5a3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
id: toolchain
4747
with:
4848
toolchain: ${{ inputs.rust_version }}
49+
components: "rustfmt"
4950
- name: Run sccache-cache
5051
uses: mozilla-actions/[email protected]
5152
- name: Build
@@ -82,6 +83,7 @@ jobs:
8283
id: toolchain
8384
with:
8485
toolchain: ${{ inputs.rust_version }}
86+
components: "rustfmt"
8587
- name: Install LLVM and Clang
8688
uses: KyleMayes/install-llvm-action@v2
8789
with:
@@ -137,6 +139,7 @@ jobs:
137139
with:
138140
toolchain: ${{ inputs.rust_version }}
139141
targets: ${{ matrix.target }}
142+
components: "rustfmt"
140143
- name: Install deps
141144
run: |
142145
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:
199202
with:
200203
toolchain: ${{ inputs.rust_version }}
201204
targets: ${{ matrix.target }}
205+
components: "rustfmt"
202206
- name: Build
203207
env:
204208
ANDROID_NDK_ROOT: ${{ steps.setup-ndk.outputs.ndk-path }}
@@ -235,6 +239,7 @@ jobs:
235239
with:
236240
toolchain: ${{ inputs.rust_version }}
237241
targets: ${{ matrix.target }}
242+
components: "rustfmt"
238243
- name: Build (arch ${{ matrix.target }} )
239244
env:
240245
OHOS_SDK_NATIVE: ${{ steps.setup_sdk.outputs.ohos_sdk_native }}
@@ -269,6 +274,7 @@ jobs:
269274
with:
270275
toolchain: "1.85.0"
271276
targets: "wasm32-${{ matrix.target }}"
277+
components: "rustfmt"
272278
- uses: bytecodealliance/actions/wasmtime/setup@v1
273279
- name: Install WASI-SDK
274280
run: |
@@ -318,6 +324,7 @@ jobs:
318324
with:
319325
toolchain: ${{ inputs.rust_version }}
320326
targets: ${{ matrix.target }}
327+
components: "rustfmt"
321328
- run: cargo +${{ steps.toolchain.outputs.name }} test --tests --examples --target ${{ matrix.target }}
322329

323330
integrity:

0 commit comments

Comments
 (0)