Skip to content

Releases: actions/setup-go

v5.0.0

06 Dec 14:23
0c52d54
Compare
Choose a tag to compare

What's Changed

In scope of this release, we change Nodejs runtime from node16 to node20 (#421). Moreover, we update some dependencies to the latest versions (#445).

Besides, this release contains such changes as:

New Contributors

Full Changelog: v4...v5.0.0

v4.1.0

08 Aug 12:04
93397be
Compare
Choose a tag to compare

What's Changed

In scope of this release, slow installation on Windows was fixed by @dsame in #393 and OS version was added to primaryKey for Ubuntu runners to avoid conflicts (#383)

This release also includes the following changes:

New Contributors

Full Changelog: v4...v4.1.0

v4.0.1

15 May 13:05
fac708d
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4...v4.0.1

v4.0.0

15 Mar 13:18
4d34df0
Compare
Choose a tag to compare

In scope of release we enable cache by default. The action won’t throw an error if the cache can’t be restored or saved. The action will throw a warning message but it won’t stop a build process. The cache can be disabled by specifying cache: false.

steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-go@v4
    with:
      go-version: ‘1.19’
  - run: go run hello.go

Besides, we introduce such changes as

Add support for stable and oldstable aliases

13 Dec 12:05
6edd440
Compare
Choose a tag to compare

In scope of this release we introduce aliases for the go-version input. The stable alias instals the latest stable version of Go. The oldstable alias installs previous latest minor release (the stable is 1.19.x -> the oldstable is 1.18.x).

Stable

steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-go@v3
    with:
      go-version: 'stable'
  - run: go run hello.go

OldStable

steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-go@v3
    with:
      go-version: 'oldstable'
  - run: go run hello.go

Add support for go.work and pass the token input through on GHES

01 Dec 13:40
d0a58c1
Compare
Choose a tag to compare

In scope of this release we added support for go.work file to pass it in go-version-file input.

steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-go@v3
    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

18 Oct 10:33
c4a742c
Compare
Choose a tag to compare

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 (#267). Moreover, we fixed an issue when the cache folder was not found. Besides, we updated actions/core to 1.10.0 version (#273).

Support architecture input and fix Expand-Archive issue

23 Aug 14:01
268d8c0
Compare
Choose a tag to compare

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/checkout@v3
- uses: actions/setup-go@v3
  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

11 Jul 14:01
84cbf80
Compare
Choose a tag to compare

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

26 May 10:17
b22fbbc
Compare
Choose a tag to compare

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:

  • cache input only:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
  with:
    go-version: '18'
    cache: true
  • cache along with cache-dependency-path:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
  with:
    go-version: '18'
    cache: true
    cache-dependency-path: subdir/go.sum