Skip to content

Commit 617b0b4

Browse files
Support using minimum_zig_version from build.zig.zon
This is a breaking change since `version` being empty now has a different meaning from before. Resolves: #16
1 parent 4c8ba10 commit 617b0b4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ This will automatically download Zig and install it to `PATH`.
2020
You can use `version` to set a Zig version to download. This may be a release (`0.13.0`), a specific nightly
2121
build (`0.14.0-dev.2+0884a4341`), the string `master` for the latest nightly build, or the string `latest`
2222
for the latest full release. It can also refer to a [Mach nominated version][mach-nominated], such as
23-
`2024.5.0-mach`. The default is `latest`.
23+
`2024.5.0-mach`. Finally, leaving the value empty (the default) will cause the action to attempt to resolve
24+
the Zig version from the `minimum_zig_version` field in `build.zig.zon`, falling back to `latest` if that
25+
isn't possible.
2426

2527
```yaml
2628
- uses: step-security/setup-zig@v1

0 commit comments

Comments
 (0)