Install the Zig compiler for use in a Forgejo Actions or GitHub Actions workflow, and preserve the Zig cache across workflow runs.
Important
Visit the main repository for documentation and usage examples.
Unfortunately, GitHub Actions 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 Actions 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 Actions.