Skip to content

fix(ci): resolve zig binary path for current step - #955

Merged
ajianaz merged 1 commit into
developfrom
fix/zigbuild-path-v2
Aug 8, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/zigbuild-path-v2

Conversation

@ajianaz

@ajianaz ajianaz commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

What

Fix zig: command not found yang masih terjadi setelah PR #953. GITHUB_PATH hanya effektif untuk step selanjutnya, BUKAN step yang sama saat menulis ke GITHUB_PATH.

Why

GitHub Actions GITHUB_PATH file menambah entries ke PATH untuk step berikutnya, bukan step yang sedang berjalan. Saat zig version dipanggil di step yang sama dengan pip install, zig binary masih tidak ditemukan karena PATH belum di-update.

Changes

  • Gunakan python3 -m site --user-base untuk dinamically resolve dimana pip menginstall binary
  • export PATH inline untuk step saat ini
  • Tetap write ke GITHUB_PATH untuk step berikutnya

Testing

CI akan verify:

  1. zig version berjalan di step install (PATH inline)
  2. cargo zigbuild berjalan di step build (PATH via GITHUB_PATH)
  3. GLIBC verification step berjalan

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.
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 98868a8 into develop Aug 8, 2026
12 checks passed
ajianaz added a commit that referenced this pull request Aug 13, 2026
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]>
@ajianaz
ajianaz deleted the fix/zigbuild-path-v2 branch August 13, 2026 01:52
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