diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be695e09..e5545034 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,6 +79,26 @@ jobs: target: - x86_64-apple-darwin + cc: + runs-on: ubuntu-22.04 + env: + TARGET_TRIPLE: x86_64-unknown-linux-gnu + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + submodules: true + - uses: dtolnay/rust-toolchain@stable + # Ensures --all-features builds correctly, the current logic will mean it + # uses stock zlib, not cmake nor cc + - run: | + cargo test --target $TARGET_TRIPLE --all-features + cargo run --target $TARGET_TRIPLE --manifest-path systest/Cargo.toml --all-features + # Ensures zlib-ng builds and runs, though zlib-ng _could_ change internally + # and not use all optimizations available to the CI runner + - run: | + cargo test --target $TARGET_TRIPLE --no-default-features --features zlib-ng-no-cmake-experimental-community-maintained + cargo run --target $TARGET_TRIPLE --manifest-path systest/Cargo.toml --no-default-features --features zlib-ng-no-cmake-experimental-community-maintained + linux: runs-on: ubuntu-latest needs: install-cross