Skip to content

Commit

Permalink
Add lints action and rename jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
mirromutth committed Dec 19, 2023
1 parent cb270a5 commit 338273d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- v*

jobs:
build:
publish:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
Expand Down
32 changes: 31 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,37 @@ name: Tests
on: [ pull_request ]

jobs:
build:
lints:
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
tests:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
Expand Down

0 comments on commit 338273d

Please sign in to comment.