From 8c82798df7b77dbbb7ebdbd8986736f90d79c222 Mon Sep 17 00:00:00 2001 From: Tobias Nett Date: Sun, 19 Dec 2021 14:39:12 +0100 Subject: [PATCH 1/3] feat: allow to use unstable go versions --- action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/action.yml b/action.yml index c0c23d9..d435163 100644 --- a/action.yml +++ b/action.yml @@ -8,6 +8,11 @@ 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 @@ -19,6 +24,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: From 22249cc43968f8de887ea3fddc0758333c4e1359 Mon Sep 17 00:00:00 2001 From: Tobias Nett Date: Mon, 20 Dec 2021 17:39:19 +0100 Subject: [PATCH 2/3] doc: explain how to use unstable Go versions --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index da40bff..01f9797 100644 --- a/README.md +++ b/README.md @@ -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`: From 37fcd195fddd0b670f08fac8bf1658ad6d32052a Mon Sep 17 00:00:00 2001 From: Tobias Nett Date: Mon, 20 Dec 2021 17:45:47 +0100 Subject: [PATCH 3/3] style: remove whitespace --- action.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/action.yml b/action.yml index d435163..376200d 100644 --- a/action.yml +++ b/action.yml @@ -11,8 +11,6 @@ inputs: go_stable: description: "Whether to download only stable versions" default: 'true' - - branding: color: purple icon: box