Skip to content

chore(ci): use msrv aware dependency resolver #113

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

Merged
Merged
Show file tree
Hide file tree
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
20 changes: 14 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,10 @@ jobs:
- run: cargo test

msrv:
name: Check MSRV (${{ matrix.rust }})
name: Check MSRV
needs: [style]
strategy:
matrix:
rust:
- 1.63 # keep in sync with MSRV.md dev doc

os:
- ubuntu-latest

Expand All @@ -77,10 +74,21 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Rust (${{ matrix.rust }})
- uses: dtolnay/rust-toolchain@stable

- name: Resolve MSRV aware dependencies
run: cargo update
env:
CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS: fallback

- name: Get MSRV from package metadata
id: msrv
run: echo "version=$(yq '.package.rust-version' Cargo.toml)" >> $GITHUB_OUTPUT

- name: Install Rust (${{ steps.msrv.outputs.version }})
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
toolchain: ${{ steps.msrv.outputs.version }}

- run: cargo check --features vendored

Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ homepage = "https://hyper.rs"
repository = "https://github.com/hyperium/hyper-tls"
documentation = "https://docs.rs/hyper-tls"
edition = "2018"
rust-version = "1.63"

[features]
alpn = ["native-tls/alpn"]
Expand Down