Skip to content

fix(ci): zig binary path resolution for cargo-zigbuild - #956

Merged
ajianaz merged 1 commit into
mainfrom
develop
Aug 8, 2026
Merged

ajianaz merged 1 commit into
mainfrom
develop

Conversation

@ajianaz

@ajianaz ajianaz commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

What

Fix zig: command not found di release workflow yang menyebabkan kedua Linux build jobs gagal.

Why

GITHUB_PATH hanya effektif untuk step berikutnya, bukan step saat ini. Saat zig version dipanggil di step yang sama dengan pip install ziglang, binary belum di PATH. Solusi: resolve path dinamis dengan python3 -m site --user-base dan export PATH inline.

Changes

  • python3 -m site --user-base untuk resolve user bin path dynamically
  • export PATH inline untuk current step
  • Tetap write $GITHUB_PATH untuk subsequent steps

Testing

CI verifies all 12 checks pass:

  • Build ✅ (includes cargo build with standard toolchain)
  • Clippy ✅, Format ✅, Test ✅

GITHUB_PATH only affects subsequent steps, not the current one.
Use python3 -m site --user-base to find zig binary location and
export PATH inline for immediate use.

Co-authored-by: ajianaz <[email protected]>
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

⚠️ Review could not complete. Cora produced an empty result. Check the workflow logs for errors.


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 71391a1 into main Aug 8, 2026
12 checks passed
ajianaz added a commit that referenced this pull request Aug 13, 2026
fix(ci): zig binary path resolution for cargo-zigbuild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant