install-action icon indicating copy to clipboard operation
install-action copied to clipboard

Feature request: Support installation of ziglang

Open NobodyXu opened this issue 1 year ago • 2 comments

My understanding of this action is that it does not do extra installs that might be required to make a tool work. e.g. installing cargo-valgrind does not also install valgrind ; installing xbuild does not also install adb and other bits of llvm not present on the github runner.

It is up to the user of this action to install dependencies that are missing, and that way they can choose the version they want of those dependencies.

I would support adding an extra tool called "ziglang", which would be a special case also like "valgrind". We could support installing different versions from https://pypi.org/project/ziglang/#history - that looks like a reasonable approach, but Python wheels are a messy format for this given that zig is a single binary, and pip is slow. Importing the binary URLs from https://ziglang.org/download/index.json would be more in tune with the way this action works, allowing runtime verification of the checksums.

Originally posted by @jayvdb in https://github.com/taiki-e/install-action/issues/508#issuecomment-2150934054

NobodyXu avatar Jun 08 '24 06:06 NobodyXu

mise can install zig

https://mise.jdx.dev/lang/zig.html#zig

jayvdb avatar Sep 09 '25 22:09 jayvdb

In my CI I was able to get zig installed using

mise settings add idiomatic_version_file_enable_tools "[]"
mise use --global zig
echo "$HOME/.local/share/mise/shims" >> "$GITHUB_PATH"
echo "Added $HOME/.local/share/mise/shims to PATH"

jayvdb avatar Sep 15 '25 00:09 jayvdb