Add support for go.work and pass the token input through on GHES
In scope of this release we added support for go.work file to pass it in go-version-file input.
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version-file: go.work
- run: go run hello.go
Besides, we added support to pass the token input through on GHES.
Fix cache issues and update dependencies
In scope of this release we fixed the issue with the correct generation of the cache key when the go-version-file
input is set (actions/setup-go#267). Moreover, we fixed an issue when the cache folder was not found. Besides, we updated actions/core
to 1.10.0 version (actions/setup-go#273).
Support architecture input and fix Expand-Archive issue
This release introduces support for architecture input for setup-go
action #253. It also adds support for arm32 architecture for self-hosted runners. If architecture is not provided action will use default runner architecture.
Example of usage:
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: '1.16'
architecture: arm
This release also provides fix for issue #241. #250 adds support for using explicit filename for Windows which is necessary to satisfy Expand-Archive's requirement on .zip extension.
Update actions/cache version to 3.0.0
In scope of this release we updated actions/cache
package as the new version contains fixes for caching error handling
Support for caching dependency files and compiler's build outputs
This release introduces support for caching dependency files and compiler's build outputs #228. For that action uses @toolkit/cache
library under the hood that in turn allows getting rid of configuring @actions/cache
action separately and simplifies the whole workflow.
Such input parameters as cache
and cache-dependency-path
were added. The cache
input is optional, and caching is turned off by default, cache-dependency-path
is used to specify the path to a dependency file - go.sum
.
Examples of use-cases:
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: '18'
</tr></table>
... (truncated)