Skip to content

Commit

Permalink
Add CI job
Browse files Browse the repository at this point in the history
Tests that --all-features continues to compile correctly, and that the cc path works for a more recent compiler than the ancient one used by the cross jobs
  • Loading branch information
Jake-Shadle committed Feb 1, 2024
1 parent c0b2e5f commit f714854
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f714854

Please sign in to comment.