Install the Zig compiler for use in a Forgejo 操作 or GitHub 操作 workflow, and preserve the Zig cache across workflow runs.
Important
Visit the main repository for documentation and usage examples.
Unfortunately, GitHub 操作 includes vendor lock-in mechanisms which require this mirror to exist. It is automatically synchronized with the upstream repository, but issues and pull requests are not accepted here.
setup-zig will continue to support GitHub 操作 into the future---that isn't changing. However, I strongly encourage users to consider moving to other Git forges such as Codeberg in order to sidestep the continued enshittification and neglect of GitHub and GitHub 操作.