Skip to content

Commit a81877f

Browse files
committed
Add clippy and rustfmt check workflow
1 parent 6acca34 commit a81877f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/check.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on: [push, pull_request]
2+
name: Run checks
3+
4+
env:
5+
RUSTFLAGS: "-Dwarnings"
6+
7+
jobs:
8+
check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Install packages
13+
run: sudo apt-get update && sudo apt-get install libgtk-3-dev gcc-mingw-w64
14+
15+
- uses: actions-rs/toolchain@v1
16+
with:
17+
toolchain: nightly
18+
components: clippy, rustfmt
19+
target: x86_64-pc-windows-gnu
20+
override: true
21+
22+
- uses: actions-rs/clippy-check@v1
23+
name: Check clippy
24+
with:
25+
token: ${{ secrets.GITHUB_TOKEN }}
26+
args: --all-features --all-targets -- -D warnings
27+
28+
- name: Check rustfmt
29+
run: cargo fmt -- --check

0 commit comments

Comments
 (0)