Skip to content

Commit

Permalink
Update linter action to use maintained rust toolchain setup action
Browse files Browse the repository at this point in the history
  • Loading branch information
foresterre committed Sep 25, 2023
1 parent c6d34ff commit 180600a
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,23 @@ on:
- main
- staging # for Bors
- trying # for Bors
merge_group:
jobs:
linter:
name: linter
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: checkout_repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: install_rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
profile: minimal
components: clippy

- name: check_with_clippy_backend_pixels
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --no-default-features --features backend_pixels -- -D warnings
run: cargo clippy --all-targets --no-default-features --features backend_pixels -- -D warnings

- name: check_with_clippy_backend_piston_window
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --no-default-features --features backend_piston_window -- -D warnings
run: cargo clippy --all-targets --no-default-features --features backend_piston_window -- -D warnings

0 comments on commit 180600a

Please sign in to comment.