diff options
| author | Michael Beaumont <[email protected]> | 2021-03-18 20:59:31 +0100 |
|---|---|---|
| committer | Michael Beaumont <[email protected]> | 2021-03-18 21:02:37 +0100 |
| commit | 5ad259620c9abb958ff80c42cb1117be47f8bad1 (patch) | |
| tree | de9ad55e45b22398c982aaa2eb8e98418df30a3d | |
| parent | d3673886b34ed8fb9dc2eecf778bd056fc483ac0 (diff) | |
Add cargo fmt --all -- --check to ci.sh
| -rw-r--r-- | .github/workflows/rust.yml | 2 | ||||
| -rwxr-xr-x | ci.sh | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cdfe354ce..17b8353e3 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml | |||
| @@ -18,7 +18,7 @@ jobs: | |||
| 18 | - uses: actions-rs/toolchain@v1 | 18 | - uses: actions-rs/toolchain@v1 |
| 19 | with: | 19 | with: |
| 20 | toolchain: nightly | 20 | toolchain: nightly |
| 21 | components: rust-src | 21 | components: rust-src, rustfmt |
| 22 | override: true | 22 | override: true |
| 23 | - name: install | 23 | - name: install |
| 24 | run: rustup target add thumbv7em-none-eabi thumbv6m-none-eabi | 24 | run: rustup target add thumbv7em-none-eabi thumbv6m-none-eabi |
| @@ -4,6 +4,8 @@ set -euxo pipefail | |||
| 4 | 4 | ||
| 5 | cd $(dirname $0) | 5 | cd $(dirname $0) |
| 6 | 6 | ||
| 7 | cargo fmt --all -- --check | ||
| 8 | |||
| 7 | # embassy std | 9 | # embassy std |
| 8 | (cd embassy-std-examples; cargo build) | 10 | (cd embassy-std-examples; cargo build) |
| 9 | 11 | ||
