Skip to content

Commit e9578fa

Browse files
committed
.github/workflows: upgrade to Go 1.24
Go version 1.24 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.24 and 1.23. 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.23 as of commit golang/tools@94db710, and we are still using Go 1.22 for that CI job.
1 parent 41999a0 commit e9578fa

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [ubuntu-latest, macos-latest]
12-
go: ['1.23.x']
12+
go: ['1.24.x']
1313
runs-on: ${{ matrix.os }}
1414
steps:
1515
- uses: actions/checkout@v4
@@ -45,7 +45,7 @@ jobs:
4545
name: Build with specific Go
4646
strategy:
4747
matrix:
48-
go: ['1.22.x']
48+
go: ['1.23.x']
4949
runs-on: ubuntu-latest
5050
steps:
5151
- uses: actions/checkout@v4
@@ -69,7 +69,7 @@ jobs:
6969
- run: gem install asciidoctor
7070
- uses: actions/setup-go@v5
7171
with:
72-
go-version: '1.23.x'
72+
go-version: '1.24.x'
7373
- run: mkdir -p "$HOME/go/bin"
7474
shell: bash
7575
- run: set GOPATH=%HOME%\go
@@ -129,7 +129,7 @@ jobs:
129129
ref: ${{ github.ref }}
130130
- uses: actions/setup-go@v5
131131
with:
132-
go-version: '1.23.x'
132+
go-version: '1.24.x'
133133
- run: git clone -b master https://github.com/git/git.git "$HOME/git"
134134
- run: |
135135
echo "GIT_INSTALL_DIR=$HOME/git" >> "$GITHUB_ENV"
@@ -153,7 +153,7 @@ jobs:
153153
ref: ${{ github.ref }}
154154
- uses: actions/setup-go@v5
155155
with:
156-
go-version: '1.23.x'
156+
go-version: '1.24.x'
157157
- run: git clone -b v2.0.0 https://github.com/git/git.git "$HOME/git"
158158
- run: |
159159
echo "GIT_INSTALL_DIR=$HOME/git" >> "$GITHUB_ENV"

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: windows-latest
1313
strategy:
1414
matrix:
15-
go: ['1.23.x']
15+
go: ['1.24.x']
1616
steps:
1717
- uses: actions/checkout@v4
1818
with:
@@ -100,7 +100,7 @@ jobs:
100100
runs-on: macos-latest
101101
strategy:
102102
matrix:
103-
go: ['1.23.x']
103+
go: ['1.24.x']
104104
steps:
105105
- uses: actions/checkout@v4
106106
with:
@@ -137,7 +137,7 @@ jobs:
137137
runs-on: ubuntu-latest
138138
strategy:
139139
matrix:
140-
go: ['1.23.x']
140+
go: ['1.24.x']
141141
steps:
142142
- uses: actions/checkout@v4
143143
with:

0 commit comments

Comments
 (0)