Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github/workflows: update 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.
chrisd8088 committed Sep 21, 2024
1 parent 17aaf6f commit db0679a
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
@@ -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
@@ -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
@@ -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
@@ -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"
@@ -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"
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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:
@@ -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:
@@ -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:

0 comments on commit db0679a

Please sign in to comment.