Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow for unstable Go versions #12

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ By default, Go 1.16 will be used to build your extension. To change this, set `g
go_version: "1.17"
```

To use unstable preview releases of Go, explicitly set the `go_stable` property to `false`:

```yaml
- uses: cli/gh-extension-precompile@v1
with:
go_stable: 'false'
go_version: "1.18.0-beta1"
```

## Using with another language

If you aren't using Go, you'll need to provide your own script for compiling your extension and configure this action to use `build_script_override`:
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
go_version:
description: "The Go version to download (if necessary) and use. Supports semver spec and ranges."
default: '1.16'
go_stable:
description: "Whether to download only stable versions"
default: 'true'
branding:
color: purple
icon: box
Expand All @@ -19,6 +22,7 @@ runs:
# out.
- uses: actions/setup-go@v2
with:
stable: ${{ inputs.go_stable }}
go-version: ${{ inputs.go_version }}
- run: ${{ github.action_path }}/build_and_release.sh
env:
Expand Down