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 85
85
fetch-depth : 1
86
86
- uses : ./.github/actions/setup_go_with_cache
87
87
with :
88
- additional-cache -key : unit
88
+ additional-gocache -key : unit
89
89
go-version : ${{ matrix.go-version }}
90
90
runs-on : ubuntu-24.04
91
91
- name : Unit tests
@@ -135,7 +135,7 @@ jobs:
135
135
fetch-depth : 1
136
136
- uses : ./.github/actions/setup_go_with_cache
137
137
with :
138
- additional-cache -key : windows
138
+ additional-gocache -key : windows
139
139
go-version : 1.23.x
140
140
runs-on : windows-2022-8-cores
141
141
- name : Unit tests
@@ -174,7 +174,7 @@ jobs:
174
174
fetch-depth : 0
175
175
- uses : ./.github/actions/setup_go_with_cache
176
176
with :
177
- additional-cache -key : integration
177
+ additional-gocache -key : integration
178
178
go-version : 1.23.x
179
179
runs-on : macos-12
180
180
- name : Unit tests
@@ -379,7 +379,7 @@ jobs:
379
379
limactl sudoers | sudo tee /etc/sudoers.d/lima
380
380
- uses : ./.github/actions/setup_go_with_cache
381
381
with :
382
- additional-cache -key : vmnet
382
+ additional-gocache -key : vmnet
383
383
go-version : 1.23.x
384
384
runs-on : macos-12
385
385
- name : Unit test (pkg/networks) with socket_vmnet
You can’t perform that action at this time.
0 commit comments