Skip to content

Commit 3acf96b

Browse files
committed
ci: fix workflow formatting
1 parent 7994b71 commit 3acf96b

1 file changed

Lines changed: 38 additions & 38 deletions

File tree

.github/workflows/rust.yml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ name: Rust
22

33
on:
44
push:
5-
branches: ['main']
6-
tags: ['**']
5+
branches: ["main"]
6+
tags: ["**"]
77
pull_request:
88

99
env:
1010
CARGO_TERM_COLOR: always
11-
RUSTFLAGS: '-D warnings'
11+
RUSTFLAGS: "-D warnings"
1212

1313
jobs:
1414
test:
@@ -22,59 +22,59 @@ jobs:
2222
- run: cargo test --lib --no-default-features
2323
- run: cargo test --all-features
2424

25-
# TODO: no_std
26-
# build-nostd:
27-
# name: Build on no_std target (thumbv7em-none-eabi)
28-
# runs-on: ubuntu-latest
29-
# steps:
30-
# - uses: actions/checkout@v3
31-
# - uses: dtolnay/rust-toolchain@master
32-
# with:
33-
# toolchain: stable
34-
# targets: thumbv7em-none-eabi
35-
# - run: cargo build --target thumbv7em-none-eabi --lib --release --no-default-features
25+
# TODO: no_std
26+
# build-nostd:
27+
# name: Build on no_std target (thumbv7em-none-eabi)
28+
# runs-on: ubuntu-latest
29+
# steps:
30+
# - uses: actions/checkout@v3
31+
# - uses: dtolnay/rust-toolchain@master
32+
# with:
33+
# toolchain: stable
34+
# targets: thumbv7em-none-eabi
35+
# - run: cargo build --target thumbv7em-none-eabi --lib --release --no-default-features
3636

3737
nightly:
3838
name: Test nightly compiler
3939
runs-on: ubuntu-latest
4040
steps:
41-
- uses: actions/checkout@v3
42-
- uses: dtolnay/rust-toolchain@nightly
43-
- run: cargo test --all-features
41+
- uses: actions/checkout@v3
42+
- uses: dtolnay/rust-toolchain@nightly
43+
- run: cargo test --all-features
4444

4545
clippy:
4646
name: Check that clippy is happy
4747
runs-on: ubuntu-latest
4848
steps:
49-
- uses: actions/checkout@v3
50-
- uses: dtolnay/rust-toolchain@stable
51-
with:
52-
components: clippy
53-
- run: cargo clippy --all-features --all-targets
49+
- uses: actions/checkout@v3
50+
- uses: dtolnay/rust-toolchain@stable
51+
with:
52+
components: clippy
53+
- run: cargo clippy --all-features --all-targets
5454

5555
rustfmt:
5656
name: Check formatting
5757
runs-on: ubuntu-latest
5858
steps:
59-
- uses: actions/checkout@v3
60-
- uses: dtolnay/rust-toolchain@stable
61-
with:
62-
components: rustfmt
63-
- run: cargo fmt -- --check
59+
- uses: actions/checkout@v3
60+
- uses: dtolnay/rust-toolchain@stable
61+
with:
62+
components: rustfmt
63+
- run: cargo fmt -- --check
6464

6565
msrv:
6666
name: Current MSRV is 1.60.0
6767
runs-on: ubuntu-latest
6868
steps:
69-
- uses: actions/checkout@v3
70-
# First run `cargo +nightly -Z minimal-verisons check` in order to get a
71-
# Cargo.lock with the oldest possible deps
72-
# - uses: dtolnay/rust-toolchain@nightly
73-
# - run: cargo -Z minimal-versions check --all-features --lib
74-
# Now check that `cargo build` works with respect to the oldest possible
75-
# deps and the stated MSRV
76-
- uses: dtolnay/rust-toolchain@1.60.0
77-
- run: cargo build --all-features --lib
69+
- uses: actions/checkout@v3
70+
# First run `cargo +nightly -Z minimal-verisons check` in order to get a
71+
# Cargo.lock with the oldest possible deps
72+
# - uses: dtolnay/rust-toolchain@nightly
73+
# - run: cargo -Z minimal-versions check --all-features --lib
74+
# Now check that `cargo build` works with respect to the oldest possible
75+
# deps and the stated MSRV
76+
- uses: dtolnay/rust-toolchain@1.60.0
77+
- run: cargo build --all-features --lib
7878

7979
semver:
8080
name: Check semver compatibility
@@ -90,8 +90,8 @@ jobs:
9090
audit:
9191
runs-on: ubuntu-latest
9292
steps:
93-
- uses: actions/checkout@v4
94-
- uses: EmbarkStudios/cargo-deny-action@v2
93+
- uses: actions/checkout@v4
94+
- uses: EmbarkStudios/cargo-deny-action@v2
9595

9696
# TODO: broken - migrate to criterion
9797
# bench:

0 commit comments

Comments
 (0)