Skip to content

Commit

Permalink
build: split CI and go.mod version
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
squeed committed Jan 6, 2025
1 parent 7f756b4 commit dce0884
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/go-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.23
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version-file: .github/go-version

- name: Build
env:
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version-file: .github/go-version

- name: Build
env:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: setup go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version-file: .github/go-version
- uses: ibiqlik/action-yamllint@v3
with:
format: auto
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version-file: .github/go-version
- name: Check module vendoring
run: |
go mod tidy
Expand All @@ -47,7 +47,7 @@ jobs:
- name: setup go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version-file: .github/go-version
- name: Build on all supported architectures
run: |
set -e
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
- name: setup go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version-file: .github/go-version
- name: Set up Go for root
run: |
sudo ln -sf `which go` `sudo which go` || true
Expand Down Expand Up @@ -106,6 +106,6 @@ jobs:
- name: setup go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version-file: .github/go-version
- name: test
run: bash ./test_windows.sh

0 comments on commit dce0884

Please sign in to comment.