use master by default, fix #24

This commit is contained in:
Renée Kooi 2022-11-07 13:19:37 +01:00
parent bf730ebe84
commit 9f0698fd52
4 changed files with 5 additions and 10 deletions

View File

@ -31,15 +31,10 @@ Optionally set a Zig version:
```yaml
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.7.0 # The default is 0.5.0
version: 0.7.0
```
To use the nightly builds, set:
```yaml
- uses: goto-bus-stop/setup-zig@v1
with:
version: master
```
The default is to use the nightly `master` builds.
Or [pin to a specific commit](https://github.com/goto-bus-stop/setup-zig/issues/13) using `version+commithash` syntax:
```yaml

View File

@ -8,7 +8,7 @@ inputs:
version:
description: 'Version of the zig compiler to use (must be 0.3.0 or up)'
required: true
default: '0.5.0'
default: 'master'
runs:
using: 'node16'
main: 'dist/index.js'

2
dist/index.js vendored
View File

@ -10964,7 +10964,7 @@ async function downloadZig (platform, version) {
}
async function main () {
const version = actions.getInput('version') || '0.5.0'
const version = actions.getInput('version') || 'master'
if (semver.valid(version) && semver.lt(version, '0.3.0')) {
actions.setFailed('This action does not work with Zig 0.1.0 and Zig 0.2.0')
return

View File

@ -28,7 +28,7 @@ async function downloadZig (platform, version) {
}
async function main () {
const version = actions.getInput('version') || '0.5.0'
const version = actions.getInput('version') || 'master'
if (semver.valid(version) && semver.lt(version, '0.3.0')) {
actions.setFailed('This action does not work with Zig 0.1.0 and Zig 0.2.0')
return