Skip to content

Commit 76513b5

Browse files
ci: Minor cleanups in ci.yml
Add some whitespace for readability, and move the installation of cargo-readme down to where it's used.
1 parent aba264c commit 76513b5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,18 @@ jobs:
3434
~/.cargo/.crates.toml
3535
target
3636
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
37+
3738
- name: Install latest nightly
3839
uses: dtolnay/rust-toolchain@nightly
3940
with:
4041
toolchain: nightly
4142
targets: thumbv7m-none-eabi
4243
components: rustfmt, clippy
43-
- run: cargo install cargo-readme
44+
4445
- run: cargo fmt --check
4546
- run: cargo test
47+
- run: cargo clippy --all-features
48+
- run: cargo doc --all-features
4649

4750
# Ensure that the library doesn't depend on std/alloc. A binary
4851
# that depends on the library is used for this (instead of
@@ -52,7 +55,6 @@ jobs:
5255
run: cargo build --target thumbv7m-none-eabi --no-default-features
5356
working-directory: ci/ensure_no_std
5457

55-
- run: cargo clippy --all-features
56-
- run: cargo doc --all-features
57-
- name: Ensure README.md is updated
58+
- run: cargo install cargo-readme
59+
- name: Ensure README.md is up-to-date
5860
run: '[ "$(< README.md)" = "$(cargo readme)" ]'

0 commit comments

Comments
 (0)