Skip to content

fix(ci): Pin Zig to 0.15.x for release builds#90

Merged
mhiro2 merged 1 commit into
mainfrom
fix/release-zig-015-pin
Apr 26, 2026
Merged

fix(ci): Pin Zig to 0.15.x for release builds#90
mhiro2 merged 1 commit into
mainfrom
fix/release-zig-015-pin

Conversation

@mhiro2

@mhiro2 mhiro2 commented Apr 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Pin Zig to the keg-only zig@0.15 formula in the release workflow so cargo-zigbuild can keep building ring and psm for the linux-musl targets.
  • The v0.8.0 release run failed because brew install zig started installing 0.16.0, which breaks cargo-zigbuild's ar wrapper (zig 0.16.0 failed to build ring rust-cross/cargo-zigbuild#433). The fix is to stay on 0.15.x until the upstream Zig regression is resolved.

Changes

  • d6e3058 fix(ci): pin Zig to 0.15.x for release builds
    • Replace brew install zig with brew install zig@0.15 and prepend $(brew --prefix zig@0.15)/bin to $GITHUB_PATH, since the versioned formula is keg-only.
    • Add an inline comment that links to zig 0.16.0 failed to build ring rust-cross/cargo-zigbuild#433 so the pin is easy to revisit once Zig 0.16+ is safe again.

Homebrew now ships Zig 0.16.0, which breaks cargo-zigbuild's ar wrapper
when building ring and psm for the linux-musl targets. The release job
was failing with "ar: error: unable to open ... libpsm_s.a" /
"libring_core_*.a". Switch to the keg-only zig@0.15 formula and prepend
its bin to PATH until the upstream Zig regression is fixed.

Refs: rust-cross/cargo-zigbuild#433
@mhiro2 mhiro2 self-assigned this Apr 26, 2026
@mhiro2 mhiro2 added the bug Something isn't working label Apr 26, 2026
@github-actions

Copy link
Copy Markdown

Code Metrics Report

main (79c104e) #90 (83ef065) +/-
Coverage 94.7% 94.7% 0.0%
Test Execution Time 1m32s 1m30s -2s
Details
  |                     | main (79c104e) | #90 (83ef065) | +/-  |
  |---------------------|----------------|---------------|------|
  | Coverage            |          94.7% |         94.7% | 0.0% |
  |   Files             |             77 |            77 |    0 |
  |   Lines             |          34529 |         34529 |    0 |
  |   Covered           |          32726 |         32726 |    0 |
+ | Test Execution Time |          1m32s |         1m30s |  -2s |

Reported by octocov

@mhiro2
mhiro2 merged commit 2a4d39f into main Apr 26, 2026
4 checks passed
@mhiro2
mhiro2 deleted the fix/release-zig-015-pin branch April 26, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant