Skip to content

Commit b3df0af

Browse files
committed
add nightly toolchain for fmt check
1 parent 7bcf883 commit b3df0af

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/rust.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ jobs:
1313
uses: mozilla-actions/[email protected]
1414
- name: Install glib/gtk dev
1515
run: sudo apt-get install -y libgtk-4-bin libgtk-4-common libgtk-4-dev libgstreamer1.0-dev gstreamer1.0-plugins-good libdiscid-dev
16+
- uses: actions-rs/toolchain@v1
17+
with:
18+
toolchain: nightly
19+
components: rustfmt, clippy
20+
override: true
1621
- name: check cargo fmt
1722
uses: actions-rs/cargo@v1
1823
with:
1924
command: fmt
20-
args: --all -- --check
25+
args: +nigthly --all -- --check
2126
- uses: actions-rs/clippy-check@v1
2227
with:
2328
args: --all-features
@@ -37,11 +42,16 @@ jobs:
3742
uses: mozilla-actions/[email protected]
3843
- name: Install glib/gtk dev
3944
run: brew install gtk4 gstreamer libdiscid sccache
45+
- uses: actions-rs/toolchain@v1
46+
with:
47+
toolchain: nightly
48+
components: rustfmt, clippy
49+
override: true
4050
- name: check cargo fmt
4151
uses: actions-rs/cargo@v1
4252
with:
4353
command: fmt
44-
args: --all -- --check
54+
args: +nigthly --all -- --check
4555
- uses: actions-rs/clippy-check@v1
4656
with:
4757
args: --all-features

0 commit comments

Comments
 (0)