Skip to content

Commit

Permalink
Update CI checkout to v4 and fail on warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sbarral committed Sep 8, 2024
1 parent aa1a72d commit 1b15ce3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
push:
branches: [ main ]

env:
RUSTFLAGS: -Dwarnings

jobs:
check:
name: Check
Expand All @@ -17,7 +20,7 @@ jobs:
- 1.60.0
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@master
Expand All @@ -32,7 +35,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
Expand All @@ -45,7 +48,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
Expand All @@ -61,7 +64,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
Expand All @@ -78,7 +81,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
Expand All @@ -89,17 +92,19 @@ jobs:
run: cargo fmt --all -- --check

- name: Run cargo clippy
run: cargo clippy -- -D warnings
run: cargo clippy

docs:
name: Docs
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@stable

- name: Run cargo doc
run: cargo doc --no-deps --document-private-items
env:
RUSTDOCFLAGS: -Dwarnings
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ path = "tests/tests.rs"

[target.'cfg(st3_loom)'.dependencies]
loom = "0.5"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(st3_loom)'] }

0 comments on commit 1b15ce3

Please sign in to comment.