Skip to content

Commit

Permalink
Merge pull request #207 from NobodyXu/patch-1
Browse files Browse the repository at this point in the history
Add minimal-versions CI
  • Loading branch information
Byron authored Aug 24, 2024
2 parents e959fd0 + 9691040 commit 38087fc
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,27 @@ jobs:
- s390x-unknown-linux-gnu
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl

minimal-versions:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
submodules: true

- run: |
rustup toolchain install nightly --profile minimal --no-self-update
cargo +nightly update -Zminimal-versions
- run: cargo build
- run: cargo build --features zlib-ng --no-default-features
- run: cargo build --no-default-features --features zlib-ng-no-cmake-experimental-community-maintained || echo "::warning::failed to build libz-ng with --features zlib-ng-no-cmake-experimental-community-maintained"


strategy:
fail-fast: false
matrix:
os:
- windows-2022
- macos-latest
- ubuntu-latest
4 changes: 2 additions & 2 deletions Cargo-zng.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "libz-ng-sys"
version = "1.1.15"
version = "1.1.16"
authors = [
"Alex Crichton <[email protected]>",
"Josh Triplett <[email protected]>",
Expand Down Expand Up @@ -36,7 +36,7 @@ members = ["systest"]
libc = "0.2.43"

[build-dependencies]
cmake = "0.1"
cmake = "0.1.50"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(zng)'] }
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "libz-sys"
version = "1.1.19"
version = "1.1.20"
authors = [
"Alex Crichton <[email protected]>",
"Josh Triplett <[email protected]>",
Expand Down Expand Up @@ -56,7 +56,7 @@ libc = { version = "0.2.43", optional = true }
pkg-config = "0.3.9"
cc = "1.0.98"
cmake = { version = "0.1.50", optional = true }
vcpkg = "0.2"
vcpkg = "0.2.11"

[features]
default = ["libc", "stock-zlib"]
Expand Down

0 comments on commit 38087fc

Please sign in to comment.