From c41f0b4348b2edbdde17c61660d915ebb0a97876 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Sat, 24 Aug 2024 16:01:27 +1000 Subject: [PATCH 1/3] Update ci.yml --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4cb05b9..d9520135 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 From eb42f72bb4e23ea16b726bc14587d4c5b3d07212 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sat, 24 Aug 2024 08:34:08 +0200 Subject: [PATCH 2/3] Set correct minimal version of `vcpkg`. --- Cargo-zng.toml | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo-zng.toml b/Cargo-zng.toml index 9a6a3ee6..3c298ca1 100644 --- a/Cargo-zng.toml +++ b/Cargo-zng.toml @@ -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)'] } diff --git a/Cargo.toml b/Cargo.toml index 84ba77be..d20e15ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] From 96910405e6dc4160410d3c4f8e39cfaf9d71a0a3 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sat, 24 Aug 2024 08:34:52 +0200 Subject: [PATCH 3/3] bump patch level to prepare release with correct minimal versions --- Cargo-zng.toml | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo-zng.toml b/Cargo-zng.toml index 3c298ca1..97b9c694 100644 --- a/Cargo-zng.toml +++ b/Cargo-zng.toml @@ -1,6 +1,6 @@ [package] name = "libz-ng-sys" -version = "1.1.15" +version = "1.1.16" authors = [ "Alex Crichton ", "Josh Triplett ", diff --git a/Cargo.toml b/Cargo.toml index d20e15ff..938f75f9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libz-sys" -version = "1.1.19" +version = "1.1.20" authors = [ "Alex Crichton ", "Josh Triplett ",