Skip to content

Commit ed25b99

Browse files
authored
Update ci.yml
1 parent ccd0818 commit ed25b99

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,26 @@ jobs:
2020
os: [windows-latest, ubuntu-latest]
2121
runs-on: ${{ matrix.os }}
2222
steps:
23-
- name: fmt
24-
if: ${{ matrix.toolchain == 'nightly' }}
25-
uses: actions-rs/cargo@v1
26-
with:
27-
components: rustfmt
28-
command: fmt
29-
args: --all -- --check
30-
3123
- uses: actions/checkout@v2
3224

3325
- uses: actions-rs/toolchain@v1
3426
with:
3527
toolchain: ${{ matrix.toolchain }}
3628
components: rustfmt, clippy
3729
override: true
30+
- name: fmt
31+
if: ${{ matrix.toolchain == 'nightly' }}
32+
uses: actions-rs/cargo@v1
33+
with:
34+
command: fmt
35+
args: --all -- --check
3836

3937
- name: Install alsa and udev
4038
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
4139
if: runner.os == 'linux'
4240

43-
- uses: actions-rs/clippy-check@v1
41+
- name: lint
42+
uses: actions-rs/clippy-check@v1
4443
with:
4544
token: ${{ secrets.GITHUB_TOKEN }}
4645
args: --all-targets --all-features -- -D warnings

0 commit comments

Comments
 (0)