Skip to content

Commit b125d38

Browse files
authored
Merge pull request #210 from tgross35/ci-fixes
Updates to fix CI
2 parents c4a60dd + ecdab82 commit b125d38

File tree

3 files changed

+23
-25
lines changed

3 files changed

+23
-25
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@master
1414
- name: Install Rust
15-
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
15+
run: |
16+
rustup update ${{ matrix.rust }} --no-self-update
17+
rustup default ${{ matrix.rust }}
1618
- run: cargo test
1719
- name: Integration test
1820
run: cargo test --manifest-path test-crate/Cargo.toml
@@ -23,7 +25,10 @@ jobs:
2325
steps:
2426
- uses: actions/checkout@master
2527
- name: Install Rust
26-
run: rustup update stable && rustup default stable && rustup component add rustfmt
28+
run: |
29+
rustup update stable --no-self-update
30+
rustup default stable
31+
rustup component add rustfmt
2732
- run: cargo fmt -- --check
2833

2934
cross_compile_test:
@@ -39,14 +44,6 @@ jobs:
3944
test: true
4045
- target: arm-unknown-linux-gnueabihf
4146
test: true
42-
- target: mips-unknown-linux-gnu
43-
test: true
44-
- target: mips64-unknown-linux-gnuabi64
45-
test: true
46-
- target: mips64el-unknown-linux-gnuabi64
47-
test: true
48-
- target: mipsel-unknown-linux-gnu
49-
test: true
5047
- target: powerpc-unknown-linux-gnu
5148
test: true
5249
- target: s390x-unknown-linux-gnu
@@ -55,24 +52,27 @@ jobs:
5552
test: true
5653
- target: aarch64-unknown-linux-musl
5754
test: true
58-
- target: x86_64-pc-windows-gnu
59-
test: true
6055
# Build only
61-
- target: x86_64-unknown-freebsd
56+
- target: x86_64-pc-solaris
6257
test: false
63-
- target: x86_64-unknown-netbsd
58+
- target: x86_64-pc-windows-gnu
6459
test: false
65-
- target: x86_64-sun-solaris
60+
# FIXME: build fails, see <https://github.com/rust-lang/cmake-rs/issues/211>
61+
# - target: x86_64-unknown-freebsd
62+
# test: false
63+
- target: x86_64-unknown-netbsd
6664
test: false
6765
- target: x86_64-unknown-illumos
6866
test: false
6967
steps:
7068
- uses: actions/checkout@master
71-
- uses: actions-rs/toolchain@v1
72-
with:
73-
toolchain: stable
74-
target: ${{ matrix.platform.target }}
75-
- uses: taiki-e/install-action@v1
69+
- name: Install Rust
70+
run: |
71+
rustup update stable --no-self-update
72+
rustup default stable
73+
rustup target add ${{ matrix.platform.target }}
74+
- run: cargo fmt -- --check
75+
- uses: taiki-e/install-action@v2
7676
with:
7777
tool: cross
7878
- name: cross test

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -837,8 +837,7 @@ impl Config {
837837
|| cfg!(target_os = "openbsd")
838838
|| cfg!(target_os = "netbsd")
839839
|| cfg!(target_os = "freebsd")
840-
|| cfg!(target_os = "bitrig")
841-
|| cfg!(target_os = "dragonflybsd")) =>
840+
|| cfg!(target_os = "dragonfly")) =>
842841
{
843842
use_jobserver = true;
844843
cmd.env("MAKEFLAGS", makeflags);

test-crate/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
name = "test-crate"
33
version = "0.1.0"
44
edition = "2021"
5-
6-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
5+
publish = false
76

87
[dependencies]
9-
libz-sys = { version = "1.1.8", default-features = false, features = ["zlib-ng"] }
8+
libz-sys = { version = "1.1.19", default-features = false, features = ["zlib-ng"] }
109

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

0 commit comments

Comments
 (0)