Skip to content
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

Updates to fix CI #210

Merged
merged 6 commits into from
Aug 15, 2024
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
40 changes: 20 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Install Rust
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
run: |
rustup update ${{ matrix.rust }} --no-self-update
rustup default ${{ matrix.rust }}
- run: cargo test
- name: Integration test
run: cargo test --manifest-path test-crate/Cargo.toml
Expand All @@ -23,7 +25,10 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Install Rust
run: rustup update stable && rustup default stable && rustup component add rustfmt
run: |
rustup update stable --no-self-update
rustup default stable
rustup component add rustfmt
- run: cargo fmt -- --check

cross_compile_test:
Expand All @@ -39,14 +44,6 @@ jobs:
test: true
- target: arm-unknown-linux-gnueabihf
test: true
- target: mips-unknown-linux-gnu
test: true
- target: mips64-unknown-linux-gnuabi64
test: true
- target: mips64el-unknown-linux-gnuabi64
test: true
- target: mipsel-unknown-linux-gnu
test: true
- target: powerpc-unknown-linux-gnu
test: true
- target: s390x-unknown-linux-gnu
Expand All @@ -55,24 +52,27 @@ jobs:
test: true
- target: aarch64-unknown-linux-musl
test: true
- target: x86_64-pc-windows-gnu
test: true
# Build only
- target: x86_64-unknown-freebsd
- target: x86_64-pc-solaris
test: false
- target: x86_64-unknown-netbsd
- target: x86_64-pc-windows-gnu
test: false
- target: x86_64-sun-solaris
# FIXME: build fails, see <https://github.com/rust-lang/cmake-rs/issues/211>
# - target: x86_64-unknown-freebsd
# test: false
- target: x86_64-unknown-netbsd
test: false
- target: x86_64-unknown-illumos
test: false
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.platform.target }}
- uses: taiki-e/install-action@v1
- name: Install Rust
run: |
rustup update stable --no-self-update
rustup default stable
rustup target add ${{ matrix.platform.target }}
- run: cargo fmt -- --check
- uses: taiki-e/install-action@v2
with:
tool: cross
- name: cross test
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -837,8 +837,7 @@ impl Config {
|| cfg!(target_os = "openbsd")
|| cfg!(target_os = "netbsd")
|| cfg!(target_os = "freebsd")
|| cfg!(target_os = "bitrig")
|| cfg!(target_os = "dragonflybsd")) =>
|| cfg!(target_os = "dragonfly")) =>
{
use_jobserver = true;
cmd.env("MAKEFLAGS", makeflags);
Expand Down
5 changes: 2 additions & 3 deletions test-crate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
name = "test-crate"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
publish = false

[dependencies]
libz-sys = { version = "1.1.8", default-features = false, features = ["zlib-ng"] }
libz-sys = { version = "1.1.19", default-features = false, features = ["zlib-ng"] }

[patch.crates-io]
cmake = { path = ".." }
Loading