Skip to content

Commit b130698

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 583334d commit b130698

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/actions/setup_go_with_cache/action.yml

Lines changed: 4 additions & 4 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
fetch-depth: 1
8686
- uses: ./.github/actions/setup_go_with_cache
8787
with:
88-
additional-cache-key: unit
88+
additional-gocache-key: unit
8989
go-version: ${{ matrix.go-version }}
9090
runs-on: ubuntu-24.04
9191
- name: Unit tests
@@ -135,7 +135,7 @@ jobs:
135135
fetch-depth: 1
136136
- uses: ./.github/actions/setup_go_with_cache
137137
with:
138-
additional-cache-key: windows
138+
additional-gocache-key: windows
139139
go-version: 1.23.x
140140
runs-on: windows-2022-8-cores
141141
- name: Unit tests
@@ -174,7 +174,7 @@ jobs:
174174
fetch-depth: 0
175175
- uses: ./.github/actions/setup_go_with_cache
176176
with:
177-
additional-cache-key: integration
177+
additional-gocache-key: integration
178178
go-version: 1.23.x
179179
runs-on: macos-12
180180
- name: Unit tests
@@ -379,7 +379,7 @@ jobs:
379379
limactl sudoers | sudo tee /etc/sudoers.d/lima
380380
- uses: ./.github/actions/setup_go_with_cache
381381
with:
382-
additional-cache-key: vmnet
382+
additional-gocache-key: vmnet
383383
go-version: 1.23.x
384384
runs-on: macos-12
385385
- name: Unit test (pkg/networks) with socket_vmnet

0 commit comments

Comments
 (0)