Skip to content

Commit f3b27b1

Browse files
authored
ci: modify ci.yml to let cargo fmt/clippy runs on nightly channel (#273)
1 parent 7494153 commit f3b27b1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/ci.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,22 @@ jobs:
3131
- name: Cache
3232
uses: Swatinem/rust-cache@v1
3333
- name: Run cargo fmt
34+
if: matrix.channel == 'nightly'
3435
uses: actions-rs/cargo@v1
3536
with:
3637
command: fmt
3738
args: --all -- --check
38-
- name: Run cargo check with no default features
39-
uses: actions-rs/cargo@v1
40-
with:
41-
command: check
42-
args: --no-default-features
4339
- name: Run cargo clippy
40+
if: matrix.channel == 'nightly'
4441
uses: actions-rs/cargo@v1
4542
with:
4643
command: clippy
4744
args: -- -D warnings
45+
- name: Run cargo check with no default features
46+
uses: actions-rs/cargo@v1
47+
with:
48+
command: check
49+
args: --no-default-features
4850
- env:
4951
CHANNEL: ${{ matrix.channel }}
5052
CROSS: ${{ !startsWith(matrix.target, 'x86_64') && contains(matrix.target, 'linux') && '1' || '0' }}
@@ -106,4 +108,4 @@ jobs:
106108
- target: i686-pc-windows-msvc
107109
os: windows-latest
108110
- target: i686-pc-windows-gnu
109-
os: windows-latest
111+
os: windows-latest

0 commit comments

Comments
 (0)