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
|
```yaml
|
||||||
- uses: goto-bus-stop/setup-zig@v1
|
- uses: goto-bus-stop/setup-zig@v1
|
||||||
with:
|
with:
|
||||||
version: 0.7.0 # The default is 0.5.0
|
version: 0.7.0
|
||||||
```
|
```
|
||||||
|
|
||||||
To use the nightly builds, set:
|
The default is to use the nightly `master` builds.
|
||||||
```yaml
|
|
||||||
- uses: goto-bus-stop/setup-zig@v1
|
|
||||||
with:
|
|
||||||
version: master
|
|
||||||
```
|
|
||||||
|
|
||||||
Or [pin to a specific commit](https://github.com/goto-bus-stop/setup-zig/issues/13) using `version+commithash` syntax:
|
Or [pin to a specific commit](https://github.com/goto-bus-stop/setup-zig/issues/13) using `version+commithash` syntax:
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
@ -8,7 +8,7 @@ inputs:
|
||||||
version:
|
version:
|
||||||
description: 'Version of the zig compiler to use (must be 0.3.0 or up)'
|
description: 'Version of the zig compiler to use (must be 0.3.0 or up)'
|
||||||
required: true
|
required: true
|
||||||
default: '0.5.0'
|
default: 'master'
|
||||||
runs:
|
runs:
|
||||||
using: 'node16'
|
using: 'node16'
|
||||||
main: 'dist/index.js'
|
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 () {
|
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')) {
|
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')
|
actions.setFailed('This action does not work with Zig 0.1.0 and Zig 0.2.0')
|
||||||
return
|
return
|
||||||
|
|
2
index.js
2
index.js
|
@ -28,7 +28,7 @@ async function downloadZig (platform, version) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function main () {
|
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')) {
|
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')
|
actions.setFailed('This action does not work with Zig 0.1.0 and Zig 0.2.0')
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user