Skip to content

Commit 62461c3

Browse files
author
Achille Roussel
committed
improve workflow
1 parent e95c9ec commit 62461c3

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/release.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,21 @@ jobs:
1515
- name: Setup Go
1616
uses: actions/setup-go@v2
1717
with:
18-
go-version: 1.17
18+
go-version: 1.17.1
1919

2020
- name: Cache Dependencies
21-
id: cache
2221
uses: actions/cache@v2
2322
with:
24-
path: vendor
25-
key: deps
26-
27-
- name: Vendor Dependencies
28-
if: steps.cache.outputs.cache-hit != 'true'
29-
run: go mod vendor
23+
path: |
24+
~/go/pkg/mod
25+
~/.cache/go-build
26+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27+
restore-keys: |
28+
${{ runner.os }}-go-
29+
30+
- name: Download Dependencies
31+
if: steps.cache-deps.outputs.cache-hit != 'true'
32+
run: go mod download
3033

3134
- name: Build Linux AMD64
3235
run: GOOS=linux GOARCH=amd64 go build -o kubectl-curl_linux_amd64

0 commit comments

Comments
 (0)