File tree 3 files changed +10
-10
lines changed
actions/setup_go_with_cache
3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : setup go with cache
2
2
description : setup go with cache. export GOMODCACHE environment variable
3
3
inputs :
4
- additional-cache -key :
5
- description : additional cache key
4
+ additional-gocache -key :
5
+ description : additional cache key for GOCACHE
6
6
required : false
7
7
go-version :
8
8
description : go version
51
51
working-directory : ${{ inputs.working-directory }}
52
52
- id : base-key
53
53
run : |
54
- echo "gomodcache-key=go-modcache-${{ inputs.working-directory }}-${{ inputs.additional-cache-key }} " >> $GITHUB_OUTPUT
55
- echo "gocache-key=go-cache-${{ inputs.working-directory }}-${{ inputs.runs-on }}-${{ inputs.additional-cache -key }}" >> $GITHUB_OUTPUT
54
+ echo "gomodcache-key=go-modcache-${{ inputs.working-directory }}" >> $GITHUB_OUTPUT
55
+ echo "gocache-key=go-cache-${{ inputs.working-directory }}-${{ inputs.runs-on }}-${{ inputs.additional-gocache -key }}" >> $GITHUB_OUTPUT
56
56
shell : bash
57
57
- name : Cache go modules
58
58
uses : actions/cache@v4
Original file line number Diff line number Diff line change 30
30
fetch-depth : 1
31
31
- uses : ./.github/actions/setup_go_with_cache
32
32
with :
33
- additional-cache -key : release
33
+ additional-gocache -key : release
34
34
go-version : 1.23.x
35
35
runs-on : macos-12
36
36
- name : Make darwin artifacts
59
59
path : _artifacts/
60
60
- uses : ./.github/actions/setup_go_with_cache
61
61
with :
62
- additional-cache -key : release
62
+ additional-gocache -key : release
63
63
go-version : 1.23.x
64
64
runs-on : ubuntu-20.04
65
65
- name : Install gcc-x86-64-linux-gnu
Original file line number Diff line number Diff line change 84
84
fetch-depth : 1
85
85
- uses : ./.github/actions/setup_go_with_cache
86
86
with :
87
- additional-cache -key : unit
87
+ additional-gocache -key : unit
88
88
go-version : ${{ matrix.go-version }}
89
89
runs-on : ubuntu-24.04
90
90
- name : Unit tests
@@ -130,7 +130,7 @@ jobs:
130
130
fetch-depth : 1
131
131
- uses : ./.github/actions/setup_go_with_cache
132
132
with :
133
- additional-cache -key : windows
133
+ additional-gocache -key : windows
134
134
go-version : 1.23.x
135
135
runs-on : windows-2022-8-cores
136
136
- name : Unit tests
@@ -168,7 +168,7 @@ jobs:
168
168
fetch-depth : 1
169
169
- uses : ./.github/actions/setup_go_with_cache
170
170
with :
171
- additional-cache -key : integration
171
+ additional-gocache -key : integration
172
172
go-version : 1.23.x
173
173
runs-on : macos-12
174
174
- name : Unit tests
@@ -373,7 +373,7 @@ jobs:
373
373
limactl sudoers | sudo tee /etc/sudoers.d/lima
374
374
- uses : ./.github/actions/setup_go_with_cache
375
375
with :
376
- additional-cache -key : vmnet
376
+ additional-gocache -key : vmnet
377
377
go-version : 1.23.x
378
378
runs-on : macos-12
379
379
- name : Unit test (pkg/networks) with socket_vmnet
You can’t perform that action at this time.
0 commit comments