-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check min versions of transitive depencencies in CI
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -202,3 +202,31 @@ jobs: | |
|
||
- name: Check spelling | ||
run: cargo spellcheck --code 1 | ||
|
||
check_min_versions: | ||
name: check minimal versions of transitive dependencies (ubuntu-latest / stable) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install nightly for -Zminimal-versions | ||
uses: dtolnay/rust-toolchain@nightly | ||
- name: Lock minimal versions | ||
# Update openssl-sys to not depend on the stale libssl-dev package. | ||
run: | | ||
cargo +nightly update -Zminimal-versions | ||
cargo +nightly update -p openssl-sys -p openssl | ||
- name: Install stable | ||
id: install-stable-rust | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Restore cached build artifacts | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
shared-key: ${{ runner.os }}-${{ steps.install-stable-rust.outputs.cachekey }}-${{ hashFiles('Cargo.lock') }} | ||
- name: Run the check | ||
env: | ||
RUST_BACKTRACE: 1 | ||
# cannot check against all packages because min versions of [email protected] are broken | ||
run: cargo +${{ steps.install-stable-rust.outputs.name }} check --package async-nats --locked --all-features --all-targets |