tamnd/Setup Zig Compiler
Download and install the Zig compiler, and cache the global Zig cache
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| version | Version of the Zig compiler, e.g. "0.13.0" or "0.13.0-dev.351+64ef45eb0". "master" uses the latest nightly build. "latest" uses the latest tagged release. Leave empty to use minimum_zig_version from build.zig.zon, with a fallback to "latest". | — | "" |
| mirror | Override of Zig download mirror to use, e.g. "https://pkg.machengine.org/zig". | no | "" |
| use-cache | Whether to cache the global and local Zig cache directories. | yes | true |
| cache-key | Additional cache key component to include when caching the global Zig cache directory. When using a matrix strategy, this should include the matrix variables to ensure all jobs are cached. Matrix variables which decide the OS can be omitted, since the OS is always included in the cache key. | no | "" |
| cache-size-limit | The maximum permitted size of the global Zig cache directory, in MiB. When the cache directory exceeds this size, it is cleared. Default is 2048 (2 GiB). 0 means no limit. | yes | 2048 |
| use-tool-cache | Override whether to use the tool cache when caching Zig installations. Default is false for GitHub-hosted runners, true for other runners. | no | "" |
Outputs
no outputs