Skip to content

Commit

Permalink
Add clippy and rustfmt check workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
trumank committed Aug 13, 2023
1 parent 6acca34 commit a81877f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on: [push, pull_request]
name: Run checks

env:
RUSTFLAGS: "-Dwarnings"

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install packages
run: sudo apt-get update && sudo apt-get install libgtk-3-dev gcc-mingw-w64

- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: clippy, rustfmt
target: x86_64-pc-windows-gnu
override: true

- uses: actions-rs/clippy-check@v1
name: Check clippy
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --all-targets -- -D warnings

- name: Check rustfmt
run: cargo fmt -- --check

0 comments on commit a81877f

Please sign in to comment.