Skip to content

Commit 3f60db1

Browse files
committed
CI: rust.yml fixed inconsistent formatting
1 parent 6d17dfe commit 3f60db1

File tree

2 files changed

+36
-35
lines changed

2 files changed

+36
-35
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ insert_final_newline = true
99
indent_style = space
1010
indent_size = 4
1111
trim_trailing_whitespace = true
12+
13+
[*.yml]
14+
indent_size = 2

.github/workflows/rust.yml

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -13,48 +13,46 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
strategy:
16-
matrix:
17-
rust:
18-
- stable
19-
- nightly
20-
- 1.52.1 # MSVR
16+
matrix:
17+
rust:
18+
- stable
19+
- nightly
20+
- 1.52.1 # MSVR
2121
steps:
22-
- uses: actions/checkout@v2
23-
- name: Build
24-
run: cargo build --verbose
25-
- name: Run tests
26-
run: cargo test --verbose
22+
- uses: actions/checkout@v2
23+
- name: Build
24+
run: cargo build --verbose
25+
- name: Run tests
26+
run: cargo test --verbose
2727

2828
build_no_std:
29-
runs-on: ubuntu-latest
30-
strategy:
31-
matrix:
32-
rust:
33-
- stable
34-
- nightly
35-
- 1.52.1 # MSVR
36-
steps:
37-
- uses: actions/checkout@v2
38-
- name: "Rustup: install some no_std target"
39-
run: rustup target add thumbv7em-none-eabihf
40-
- name: Build (no_std)
41-
run: cargo build --target thumbv7em-none-eabihf
29+
runs-on: ubuntu-latest
30+
strategy:
31+
matrix:
32+
rust:
33+
- stable
34+
- nightly
35+
- 1.52.1 # MSVR
36+
steps:
37+
- uses: actions/checkout@v2
38+
- name: "Rustup: install some no_std target"
39+
run: rustup target add thumbv7em-none-eabihf
40+
- name: Build (no_std)
41+
run: cargo build --target thumbv7em-none-eabihf
4242

4343

4444
# As discussed, these tasks are optional for PRs.
4545
style_checks:
46-
4746
runs-on: ubuntu-latest
4847
strategy:
49-
matrix:
50-
rust:
51-
- stable
52-
48+
matrix:
49+
rust:
50+
- stable
5351
steps:
54-
- uses: actions/checkout@v2
55-
- name: Rustfmt
56-
run: cargo fmt -- --check
57-
- name: Clippy
58-
run: cargo clippy
59-
- name: Rustdoc
60-
run: cargo doc
52+
- uses: actions/checkout@v2
53+
- name: Rustfmt
54+
run: cargo fmt -- --check
55+
- name: Clippy
56+
run: cargo clippy
57+
- name: Rustdoc
58+
run: cargo doc

0 commit comments

Comments
 (0)