Skip to content

Commit

Permalink
Merge pull request #245 from rust-cross/zig-0.12
Browse files Browse the repository at this point in the history
Test zig 0.12.0 on CI
  • Loading branch information
messense authored Apr 23, 2024
2 parents 8a76c1d + abca061 commit 18d3161
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-13, windows-latest]
toolchain: [1.70.0, stable, nightly]
# Ideally we should also test against 0.9.0, but it is too unusable to test from CI
zig: [0.10.1, 0.11.0, master]
zig: [0.10.1, 0.12.0, master]
exclude:
# Only test MSRV with zig stable version
- toolchain: 1.70.0
Expand Down Expand Up @@ -156,6 +155,7 @@ jobs:
cargo run zigbuild --target aarch64-unknown-linux-musl
cargo run zigbuild --target aarch64-unknown-linux-musl --manifest-path tests/hello-rustls/Cargo.toml
- name: Windows - Test gnu build
if: matrix.zig != '0.12.0'
run: |
cargo run zigbuild --target x86_64-pc-windows-gnu
cargo run zigbuild --target x86_64-pc-windows-gnu --manifest-path tests/hello-windows/Cargo.toml
Expand All @@ -166,7 +166,7 @@ jobs:
run: |
cargo run zigbuild --target aarch64-unknown-linux-gnu --manifest-path tests/hello-rustls/Cargo.toml --features curl
- name: Windows - Test run
if: matrix.os == 'windows-latest'
if: ${{ matrix.os == 'windows-latest' && matrix.zig != '0.12.0' }}
run: |
./target/x86_64-pc-windows-gnu/debug/cargo-zigbuild.exe zigbuild --help
./tests/hello-windows/target/x86_64-pc-windows-gnu/debug/hello-windows.exe
Expand Down
1 change: 1 addition & 0 deletions src/zig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,7 @@ impl Zig {
args.push("-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS".to_owned());
args.push("-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS".to_owned());
args.push("-D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS".to_owned());
args.push("-D_LIBCPP_PSTL_CPU_BACKEND_SERIAL".to_owned());
args.push("-D_LIBCPP_ABI_VERSION=1".to_owned());
args.push("-D_LIBCPP_ABI_NAMESPACE=__1".to_owned());
if let Some(ver) = c_opts.glibc_minor_ver {
Expand Down

0 comments on commit 18d3161

Please sign in to comment.