Skip to content

Commit 7bcf883

Browse files
committed
add fmt and clippy check
1 parent d982a47 commit 7bcf883

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/rust.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,21 @@ 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+
- name: check cargo fmt
17+
uses: actions-rs/cargo@v1
18+
with:
19+
command: fmt
20+
args: --all -- --check
21+
- uses: actions-rs/clippy-check@v1
22+
with:
23+
args: --all-features
1624
- name: Build
1725
run: cargo build --release
1826
- name: Run tests
1927
run: cargo test
2028
- uses: actions/upload-artifact@v3
2129
with:
22-
name: ripperx4
30+
name: ripperx4-linux
2331
path: target/release/ripperx4
2432
build-macos:
2533
runs-on: macos-latest
@@ -29,11 +37,19 @@ jobs:
2937
uses: mozilla-actions/[email protected]
3038
- name: Install glib/gtk dev
3139
run: brew install gtk4 gstreamer libdiscid sccache
40+
- name: check cargo fmt
41+
uses: actions-rs/cargo@v1
42+
with:
43+
command: fmt
44+
args: --all -- --check
45+
- uses: actions-rs/clippy-check@v1
46+
with:
47+
args: --all-features
3248
- name: Build
3349
run: cargo build --release
3450
- name: Run tests
3551
run: cargo test
3652
- uses: actions/upload-artifact@v3
3753
with:
38-
name: ripperx4
54+
name: ripperx4-macos
3955
path: target/release/ripperx4

0 commit comments

Comments
 (0)