Skip to content

Commit 8902dab

Browse files
committed
setup_go_with_cache: change additional-cache-key to additional-gocache-key
and remove additional cache key from `gomodcache-key` Signed-off-by: Norio Nomura <[email protected]>
1 parent ac14120 commit 8902dab

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/actions/setup_go_with_cache/action.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: setup go with cache
22
description: setup go with cache. export GOMODCACHE environment variable
33
inputs:
4-
additional-cache-key:
5-
description: additional cache key
4+
additional-gocache-key:
5+
description: additional cache key for GOCACHE
66
required: false
77
go-version:
88
description: go version
@@ -51,8 +51,8 @@ runs:
5151
working-directory: ${{ inputs.working-directory }}
5252
- id: base-key
5353
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
5656
shell: bash
5757
- name: Cache go modules
5858
uses: actions/cache@v4

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
fetch-depth: 1
3131
- uses: ./.github/actions/setup_go_with_cache
3232
with:
33-
additional-cache-key: release
33+
additional-gocache-key: release
3434
go-version: 1.23.x
3535
runs-on: macos-12
3636
- name: Make darwin artifacts
@@ -59,7 +59,7 @@ jobs:
5959
path: _artifacts/
6060
- uses: ./.github/actions/setup_go_with_cache
6161
with:
62-
additional-cache-key: release
62+
additional-gocache-key: release
6363
go-version: 1.23.x
6464
runs-on: ubuntu-20.04
6565
- name: Install gcc-x86-64-linux-gnu

.github/workflows/test.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
fetch-depth: 1
8585
- uses: ./.github/actions/setup_go_with_cache
8686
with:
87-
additional-cache-key: unit
87+
additional-gocache-key: unit
8888
go-version: ${{ matrix.go-version }}
8989
runs-on: ubuntu-24.04
9090
- name: Unit tests
@@ -130,7 +130,7 @@ jobs:
130130
fetch-depth: 1
131131
- uses: ./.github/actions/setup_go_with_cache
132132
with:
133-
additional-cache-key: windows
133+
additional-gocache-key: windows
134134
go-version: 1.23.x
135135
runs-on: windows-2022-8-cores
136136
- name: Unit tests
@@ -168,7 +168,7 @@ jobs:
168168
fetch-depth: 1
169169
- uses: ./.github/actions/setup_go_with_cache
170170
with:
171-
additional-cache-key: integration
171+
additional-gocache-key: integration
172172
go-version: 1.23.x
173173
runs-on: macos-12
174174
- name: Unit tests
@@ -373,7 +373,7 @@ jobs:
373373
limactl sudoers | sudo tee /etc/sudoers.d/lima
374374
- uses: ./.github/actions/setup_go_with_cache
375375
with:
376-
additional-cache-key: vmnet
376+
additional-gocache-key: vmnet
377377
go-version: 1.23.x
378378
runs-on: macos-12
379379
- name: Unit test (pkg/networks) with socket_vmnet

0 commit comments

Comments
 (0)