Skip to content

Commit

Permalink
.github/workflows: upgrade to Go 1.23
Browse files Browse the repository at this point in the history
Go version 1.23 has been released, and because we aim to build and test
Git LFS against only supported versions of Go, we upgrade our GitHub
Actions CI workflows to test against Go versions 1.23 and 1.22.

This resolves a problem now seen in our "Build with specific Go" CI job,
where we install the latest version of the "goimports" package and it
fails because the "x/tools" module requires Go 1.22 as of commit
golang/tools@70f5626, and we are still
using Go 1.21 for that CI job.
  • Loading branch information
chrisd8088 committed Sep 27, 2024
1 parent 2c3dbea commit f437bb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
go: ['1.22.x']
go: ['1.23.x']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
name: Build with specific Go
strategy:
matrix:
go: ['1.21.x']
go: ['1.22.x']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
# which does not honour the PATH we set to our built git-lfs binary.
- uses: actions/setup-go@v5
with:
go-version: '1.22.x'
go-version: '1.23.x'
- run: mkdir -p "$HOME/go/bin"
shell: bash
- run: set GOPATH=%HOME%\go
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: '1.22.x'
go-version: '1.23.x'
- run: git fetch origin "+${GITHUB_REF}:${GITHUB_REF}"
if: ${{ github.ref_type == 'tag' }}
- run: git clone -b master https://github.com/git/git.git "$HOME/git"
Expand All @@ -161,7 +161,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: '1.22.x'
go-version: '1.23.x'
- run: git fetch origin "+${GITHUB_REF}:${GITHUB_REF}"
if: ${{ github.ref_type == 'tag' }}
- run: git clone -b v2.0.0 https://github.com/git/git.git "$HOME/git"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
go: ['1.22.x']
go: ['1.23.x']
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
go: ['1.22.x']
go: ['1.23.x']
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.22.x']
go: ['1.23.x']
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit f437bb3

Please sign in to comment.