use master
by default, fix #24
This commit is contained in:
parent
bf730ebe84
commit
9f0698fd52
|
@ -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
|
||||
|
|
|
@ -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
2
dist/index.js
vendored
|
@ -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
|
||||
|
|
2
index.js
2
index.js
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user