Skip to content

Commit e4ca66b

Browse files
committed
build: split CI and go.mod version
Downstream users would like to lower the minimum required go version, but it would be nice to test and release with the latest go. So, use a placeholder go version file for CI. Signed-off-by: Casey Callendrello <[email protected]>
1 parent abfac4a commit e4ca66b

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.github/go-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.23

.github/workflows/release.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version-file: go.mod
22+
go-version-file: .github/go-version
2323

2424
- name: Build
2525
env:
@@ -74,7 +74,7 @@ jobs:
7474
- name: Install Go
7575
uses: actions/setup-go@v5
7676
with:
77-
go-version-file: go.mod
77+
go-version-file: .github/go-version
7878

7979
- name: Build
8080
env:

.github/workflows/test.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: setup go
1717
uses: actions/setup-go@v5
1818
with:
19-
go-version-file: go.mod
19+
go-version-file: .github/go-version
2020
- uses: ibiqlik/action-yamllint@v3
2121
with:
2222
format: auto
@@ -32,7 +32,7 @@ jobs:
3232
- name: Install Go
3333
uses: actions/setup-go@v5
3434
with:
35-
go-version-file: go.mod
35+
go-version-file: .github/go-version
3636
- name: Check module vendoring
3737
run: |
3838
go mod tidy
@@ -47,7 +47,7 @@ jobs:
4747
- name: setup go
4848
uses: actions/setup-go@v5
4949
with:
50-
go-version-file: go.mod
50+
go-version-file: .github/go-version
5151
- name: Build on all supported architectures
5252
run: |
5353
set -e
@@ -75,7 +75,7 @@ jobs:
7575
- name: setup go
7676
uses: actions/setup-go@v5
7777
with:
78-
go-version-file: go.mod
78+
go-version-file: .github/go-version
7979
- name: Set up Go for root
8080
run: |
8181
sudo ln -sf `which go` `sudo which go` || true
@@ -106,6 +106,6 @@ jobs:
106106
- name: setup go
107107
uses: actions/setup-go@v5
108108
with:
109-
go-version-file: go.mod
109+
go-version-file: .github/go-version
110110
- name: test
111111
run: bash ./test_windows.sh

0 commit comments

Comments
 (0)