What changed in mlugg/setup-zig from 1 to 2
9 releases numbered after v1.2.2 up to and including v2.2.1, stable releases only. v1.2.2 and v2.2.1 are the newest stable releases of 1 and 2 we track; this page follows them as new ones ship.
- 1 removes or deprecates something
20 changes across 9 releases · 1 landed on more than one version
- Update dependenciesalso inv2.0.2
- Replace libsodium dependency with node:crypto, improving target support
- Use hardcoded mirror list when ziglang.org is inaccessible
- Progress towards better OS support
- Zig caches are redirected to the working directory to avoid sharing the cache on self-hosted runners
- Use more descriptive ?source query parameter value
- Fetches the list of Zig mirrors from the Zig website instead of using a hardcoded mirrors.json list
- Don't use tool cache on GitHub-hosted runners by default
- Improve logging, in particular to help debug potential issues
- Clear Zig cache directory when it grows too large
- Remove some mirrors experiencing issues
One release in the range carries no categorized changes yet: v2.0.5. Their original notes, where the vendor published any, are below.
Original release notes, newest first
The list above is our reading of these notes; the originals from mlugg are here, one fold per release.
v2.2.1
- Print which version of Zig was installed
- Add a little more log output (helps debug cache issues)
[!NOTE] The setup-zig project is now hosted on Codeberg, and this GitHub repository exists as a mirror solely to work around the vendor lock-in mechanisms employed by GitHub Actions. While there are no plans to discontinue GitHub Actions support, I would nonetheless encourage users to consider upgrading to Forgejo Actions on a non-profit forge like Codeberg to avoid being affected by GitHub's profit-driven behavior (such as attempting to charge users by the minute for using their own hardware).
v2.2.0
- Update dependencies
- Replace libsodium dependency with node:crypto, improving target support
- Use hardcoded mirror list when ziglang.org is inaccessible
- Fix incorrect tarball names when fetching certain versions
[!NOTE] The setup-zig project is now hosted on Codeberg, and this GitHub repository exists as a mirror solely to work around the vendor lock-in mechanisms employed by GitHub Actions. While there are no plans to discontinue GitHub Actions support, I would nonetheless encourage users to consider upgrading to Forgejo Actions on a non-profit forge like Codeberg to avoid being affected by GitHub's profit-driven behavior (such as attempting to charge users by the minute for using their own hardware).
v2.1.0
- Support Forgejo Actions
- Support recent Zig versions on ARM
- Progress towards better OS support
- Redirect Zig caches to working directory to avoid sharing the cache on self-hosted runners
v2.0.5
- Fix exception identifying Zig cache directory on recent Zig builds (#49)
v2.0.4
- Fix canonical
ziglang.orgdownload URL - Use more descriptive
?sourcequery parameter value
v2.0.3
This release switches from a hardcoded mirrors.json list, to fetching the list of mirrors now available from the Zig website. There are no user-facing changes.
v2.0.2
- Update dependencies
- Remove some mirrors experiencing issues
- Don't use tool cache on GitHub-hosted runners by default (#34)
- Improve logging, in particular to help debug potential issues
v2.0.1
The recent Zig 0.14.1 release flipped the "arch" and "OS" fields in the tarball name; for instance, zig-x86_64-linux-0.14.1.tar.xz instead of zig-linux-x86_64-0.14.1.tar.xz. This brings the tarball names in line with target triple syntax.
The change does not retroactively apply to old Zig tarballs.
So, this patch has only one fix:
- Add support for new Zig tarball name format as of Zig 0.14.1 / 0.15.0-dev.631+9a3540d61
[!NOTE]
I do not intend to update v1 to support the new tarball name format.
setup-zigversion 1 is considered deprecated. Please upgrade to version 2.
v2.0.0
- Support getting Zig version from
build.zig.zon - Add option to customize cache key to work around matrix deficiencies
- Clear Zig cache directory when it grows too large