Skip to content

Commit ddd83f2

Browse files
committed
Added BuildPulse cache
1 parent 3041bf5 commit ddd83f2

File tree

9 files changed

+122569
-152774
lines changed

9 files changed

+122569
-152774
lines changed

.licenses/npm/@actions/cache.dep.yml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
# setup-go
2-
3-
[![Basic validation](https://github.com/actions/setup-go/actions/workflows/basic-validation.yml/badge.svg)](https://github.com/actions/setup-go/actions/workflows/basic-validation.yml)
4-
[![Validate 'setup-go'](https://github.com/actions/setup-go/actions/workflows/versions.yml/badge.svg)](https://github.com/actions/setup-go/actions/workflows/versions.yml)
1+
# BuildPulse setup-go
52

63
This action sets up a go environment for use in actions by:
74

@@ -14,7 +11,7 @@ The V5 edition of the action offers:
1411

1512
- Upgraded Node.js runtime from node16 to node20
1613

17-
See full release notes on the [releases page](https://github.com/actions/setup-go/releases).
14+
See full release notes on the [releases page](https://github.com/buildpulse/setup-go/releases).
1815

1916
# V4
2017

@@ -24,7 +21,7 @@ The V4 edition of the action offers:
2421

2522
The action will try to enable caching unless the `cache` input is explicitly set to false.
2623

27-
Please see "[Caching dependency files and build outputs](https://github.com/actions/setup-go#caching-dependency-files-and-build-outputs)" for more information.
24+
Please see "[Caching dependency files and build outputs](https://github.com/buildpulse/setup-go#caching-dependency-files-and-build-outputs)" for more information.
2825

2926
# V3
3027

@@ -51,7 +48,7 @@ Matching by [semver spec](https://github.com/npm/node-semver):
5148
```yaml
5249
steps:
5350
- uses: actions/checkout@v4
54-
- uses: actions/setup-go@v5
51+
- uses: buildpulse/setup-go@v5
5552
with:
5653
go-version: '^1.13.1' # The Go version to download (if necessary) and use.
5754
- run: go version
@@ -60,7 +57,7 @@ steps:
6057
```yaml
6158
steps:
6259
- uses: actions/checkout@v4
63-
- uses: actions/setup-go@v5
60+
- uses: buildpulse/setup-go@v5
6461
with:
6562
go-version: '>=1.17.0'
6663
- run: go version
@@ -79,7 +76,7 @@ Matching an unstable pre-release:
7976
```yaml
8077
steps:
8178
- uses: actions/checkout@v4
82-
- uses: actions/setup-go@v5
79+
- uses: buildpulse/setup-go@v5
8380
with:
8481
go-version: '1.18.0-rc.1' # The Go version to download (if necessary) and use.
8582
- run: go version
@@ -88,7 +85,7 @@ steps:
8885
```yaml
8986
steps:
9087
- uses: actions/checkout@v4
91-
- uses: actions/setup-go@v5
88+
- uses: buildpulse/setup-go@v5
9289
with:
9390
go-version: '1.16.0-beta.1' # The Go version to download (if necessary) and use.
9491
- run: go version
@@ -103,7 +100,7 @@ See [action.yml](action.yml)
103100
```yaml
104101
steps:
105102
- uses: actions/checkout@v4
106-
- uses: actions/setup-go@v5
103+
- uses: buildpulse/setup-go@v5
107104
with:
108105
go-version: '1.16.1' # The Go version to download (if necessary) and use.
109106
- run: go run hello.go
@@ -124,7 +121,7 @@ want the most up-to-date Go version to always be used.
124121
```yaml
125122
steps:
126123
- uses: actions/checkout@v4
127-
- uses: actions/setup-go@v5
124+
- uses: buildpulse/setup-go@v5
128125
with:
129126
go-version: '1.14'
130127
check-latest: true
@@ -145,7 +142,7 @@ set to `true`
145142
```yaml
146143
steps:
147144
- uses: actions/checkout@v4
148-
- uses: actions/setup-go@v5
145+
- uses: buildpulse/setup-go@v5
149146
with:
150147
go-version: 'stable'
151148
- run: go run hello.go
@@ -154,7 +151,7 @@ steps:
154151
```yaml
155152
steps:
156153
- uses: actions/checkout@v4
157-
- uses: actions/setup-go@v5
154+
- uses: buildpulse/setup-go@v5
158155
with:
159156
go-version: 'oldstable'
160157
- run: go run hello.go
@@ -163,7 +160,7 @@ steps:
163160
## Caching dependency files and build outputs:
164161

165162
The action has a built-in functionality for caching and restoring go modules and build outputs. It
166-
uses [toolkit/cache](https://github.com/actions/toolkit/tree/main/packages/cache) under the hood but requires less configuration settings.
163+
uses [toolkit/cache](https://github.com/buildpulse/toolkit/tree/main/packages/cache) under the hood but requires less configuration settings.
167164
The `cache` input is optional, and caching is turned on by default.
168165

169166
The action defaults to search for the dependency file - go.sum in the repository root, and uses its hash as a part of
@@ -177,7 +174,7 @@ If some problem that prevents success caching happens then the action issues the
177174
```yaml
178175
steps:
179176
- uses: actions/checkout@v4
180-
- uses: actions/setup-go@v5
177+
- uses: buildpulse/setup-go@v5
181178
with:
182179
go-version: '1.17'
183180
check-latest: true
@@ -193,8 +190,8 @@ steps:
193190

194191
The `go-version-file` input accepts a path to a `go.mod` file or a `go.work` file that contains the version of Go to be used by a project.
195192

196-
The `go` directive in `go.mod` can specify a patch version or omit it altogether (e.g., `go 1.22.0` or `go 1.22`).
197-
If a patch version is specified, that specific patch version will be used.
193+
The `go` directive in `go.mod` can specify a patch version or omit it altogether (e.g., `go 1.22.0` or `go 1.22`).
194+
If a patch version is specified, that specific patch version will be used.
198195
If no patch version is specified, it will search for the latest available patch version in the cache,
199196
[versions-manifest.json](https://github.com/actions/go-versions/blob/main/versions-manifest.json), and the
200197
[official Go language website](https://golang.org/dl/?mode=json&include=all), in that order.
@@ -205,7 +202,7 @@ If both the `go-version` and the `go-version-file` inputs are provided then the
205202
```yaml
206203
steps:
207204
- uses: actions/checkout@v4
208-
- uses: actions/setup-go@v5
205+
- uses: buildpulse/setup-go@v5
209206
with:
210207
go-version-file: 'path/to/go.mod'
211208
- run: go version
@@ -224,7 +221,7 @@ jobs:
224221
steps:
225222
- uses: actions/checkout@v4
226223
- name: Setup go
227-
uses: actions/setup-go@v5
224+
uses: buildpulse/setup-go@v5
228225
with:
229226
go-version: ${{ matrix.go }}
230227
- run: go run hello.go
@@ -252,7 +249,7 @@ If that fails as well the action will try to download versions directly from htt
252249
If that fails as well you can get a higher rate limit with [generating a personal access token on github.com](https://github.com/settings/tokens/new) and passing it as the `token` input to the action:
253250

254251
```yaml
255-
uses: actions/setup-go@v5
252+
uses: buildpulse/setup-go@v5
256253
with:
257254
token: ${{ secrets.GH_DOTCOM_TOKEN }}
258255
go-version: '1.18'

0 commit comments

Comments
 (0)