Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: build with --locked, and add one job for stable build without --locked #196

Merged
merged 1 commit into from
Mar 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: RUSTFLAGS="-D warnings" cargo check --locked

check-notlocked:
name: Check (not locked)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Cargo update
run: cargo update
- run: RUSTFLAGS="-D warnings" cargo check
Expand All @@ -40,9 +48,7 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Cargo update
run: cargo update
- run: RUSTFLAGS="-D warnings" cargo check --all-targets --all-features
- run: RUSTFLAGS="-D warnings" cargo check --locked --all-targets --all-features

test:
name: Test Suite
Expand All @@ -51,7 +57,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --all-features
- run: cargo test --locked --all-features

test_features:
name: Test suite (with features)
Expand All @@ -69,7 +75,7 @@ jobs:
- uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- run: cargo test ${{ matrix.features }}
- run: cargo test --locked ${{ matrix.features }}

fmt:
name: Rustfmt
Expand All @@ -90,7 +96,7 @@ jobs:
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- run: cargo clippy --all-features -- -D warnings
- run: cargo clippy --locked --all-features -- -D warnings

doc:
name: Build documentation
Expand Down