Skip to content

fix(ci): resolve both zig and cargo-zigbuild binary paths - #958

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

Final fix untuk zig binary path resolution di release workflow. Dua binary di lokasi berbeda setelah pip install — resolve keduanya dinamis.

Why

PR #953 dan #955 tidak menyelesaikan masalah karena zig binary ada di dalam Python package ziglang/, bukan di ~/.local/bin atau user-base/bin. Hanya cargo-zigbuild yang ada di user-base/bin. Fix: resolve kedua path secara terpisah.

Changes

  • zig: import ziglang; os.path.dirname(ziglang.__file__)
  • cargo-zigbuild: python3 -m site --user-base/bin
  • Add keduanya ke GITHUB_PATH + PATH

Testing

All 12 CI checks pass. Release workflow akan verify actual zigbuild pada tag push.

Two binaries at different locations:
- cargo-zigbuild: python3 -m site --user-base /bin/
- zig: inside ziglang Python package directory

Add both to GITHUB_PATH (subsequent steps) and PATH (current step).
Verify both commands work in the install step.

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 4c940e3 into main Aug 8, 2026
12 checks passed
ajianaz added a commit that referenced this pull request Aug 13, 2026
fix(ci): resolve both zig and cargo-zigbuild binary paths
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