Skip to content

Commit

Permalink
Add lints action on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
mirromutth committed Dec 19, 2023
1 parent 4a6f2eb commit bd482a2
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/lints.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Lints

on: [ pull_request ]

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Install clippy
run: rustup component add clippy
- name: Run clippy for sync with atomic-wait
run: cargo clippy -p latches --no-default-features --features sync --features atomic-wait
- name: Run clippy for sync with atomic-wait
run: cargo clippy -p latches --no-default-features --features sync --features atomic-wait
- name: Run clippy for sync with std
run: cargo clippy -p latches --no-default-features --features sync --features std
- name: Run clippy for futex
run: cargo clippy -p latches --no-default-features --features futex
- name: Run clippy for task with spins
run: cargo clippy -p latches --no-default-features --features task
- name: Run clippy for task with atomic-wait
run: cargo clippy -p latches --no-default-features --features task --features atomic-wait
- name: Run clippy for task with std
run: cargo clippy -p latches --no-default-features --features task --features std
- name: Run clippy for all with atomic-wait
run: cargo clippy -p latches --no-default-features --features task --features futex --features sync
- name: Run clippy for all targets
run: cargo clippy --all-targets --all-features

0 comments on commit bd482a2

Please sign in to comment.