Skip to content

Commit 322e77d

Browse files
committed
ci: Run "cargo fmt"
1 parent ff360c3 commit 322e77d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/rust.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,16 @@ jobs:
2424
with:
2525
toolchain: ${{ matrix.toolchain }}
2626

27+
- name: Format
28+
# format always on stable, to avoid different toolchains pingponging
29+
run: cargo +stable fmt --all --check
30+
2731
- name: Build
2832
run: cargo +${{ matrix.toolchain }} build --workspace --verbose
33+
2934
- name: Run tests
3035
run: cargo +${{ matrix.toolchain }} test --workspace --all-features --verbose -- --skip _runsinglethread
36+
3137
- name: Run tests (single-threaded tests)
3238
run: cargo +${{ matrix.toolchain }} test --workspace --all-features --verbose -- _runsinglethread --test-threads 1
3339

@@ -52,6 +58,7 @@ jobs:
5258
with:
5359
toolchain: ${{ matrix.toolchain }}
5460
target: aarch64-linux-android
61+
5562
- name: Install toolchains (i686)
5663
uses: actions-rs/toolchain@v1
5764
with:
@@ -60,6 +67,7 @@ jobs:
6067

6168
- name: cargo check (aarch64)
6269
run: cargo +${{ matrix.toolchain }} check --workspace --target aarch64-linux-android --all-features
70+
6371
- name: cargo check (i686)
6472
run: cargo +${{ matrix.toolchain }} check --workspace --target i686-unknown-linux-gnu --all-features
6573

0 commit comments

Comments
 (0)