ci: test on go1.24

This commit is contained in:
Li Jie
2025-02-16 18:14:00 +08:00
parent df0f239929
commit 60fac0a010
4 changed files with 26 additions and 12 deletions

View File

@@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: ./.github/actions/setup-go
with:
go-version: '1.23.6'
go-version: '1.24.0'
- name: Check formatting
run: |

View File

@@ -38,7 +38,7 @@ jobs:
- name: Set up Go
uses: ./.github/actions/setup-go
with:
go-version: '1.23.6'
go-version: '1.24.0'
- name: Build
run: go build -v ./...

View File

@@ -18,7 +18,7 @@ jobs:
- macos-latest
- ubuntu-24.04
llvm: [18]
go: ['1.20.14', '1.21.13', '1.22.12', '1.23.6']
go: ['1.20.14', '1.21.13', '1.22.12', '1.23.6', '1.24.0']
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
@@ -38,7 +38,7 @@ jobs:
- name: Set up Go for build
uses: ./.github/actions/setup-go
with:
go-version: '1.23.6'
go-version: '1.24.0'
- name: Install
working-directory: compiler
@@ -102,7 +102,7 @@ jobs:
- macos-latest
- ubuntu-24.04
llvm: [18]
go: ['1.23.6']
go: ['1.24.0']
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
@@ -122,7 +122,7 @@ jobs:
- name: Set up Go for build
uses: ./.github/actions/setup-go
with:
go-version: '1.23.6'
go-version: '1.24.0'
- name: Install
working-directory: compiler
@@ -155,7 +155,7 @@ jobs:
matrix:
os: [ubuntu-24.04, macos-latest]
llvm: [18]
go: ['1.20.14', '1.21.13', '1.22.12', '1.23.6']
go: ['1.20.14', '1.21.13', '1.22.12', '1.23.6', '1.24.0']
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
@@ -167,7 +167,7 @@ jobs:
- name: Set up Go 1.23 for building llgo
uses: ./.github/actions/setup-go
with:
go-version: '1.23.6'
go-version: '1.24.0'
- name: Install llgo
working-directory: compiler
@@ -181,22 +181,36 @@ jobs:
go-version: ${{matrix.go}}
- name: Test Hello World with go.mod 1.20
if: startsWith(matrix.go, '1.20') || startsWith(matrix.go, '1.21') || startsWith(matrix.go, '1.22') || startsWith(matrix.go, '1.23')
if: startsWith(matrix.go, '1.20') || startsWith(matrix.go, '1.21') || startsWith(matrix.go, '1.22') || startsWith(matrix.go, '1.23') || startsWith(matrix.go, '1.24')
uses: ./.github/actions/test-helloworld
with:
go-version: ${{matrix.go}}
mod-version: '1.20'
- name: Test Hello World with go.mod 1.21
if: startsWith(matrix.go, '1.21') || startsWith(matrix.go, '1.22') || startsWith(matrix.go, '1.23')
if: startsWith(matrix.go, '1.21') || startsWith(matrix.go, '1.22') || startsWith(matrix.go, '1.23') || startsWith(matrix.go, '1.24')
uses: ./.github/actions/test-helloworld
with:
go-version: ${{matrix.go}}
mod-version: '1.21'
- name: Test Hello World with go.mod 1.22
if: startsWith(matrix.go, '1.22') || startsWith(matrix.go, '1.23')
if: startsWith(matrix.go, '1.22') || startsWith(matrix.go, '1.23') || startsWith(matrix.go, '1.24')
uses: ./.github/actions/test-helloworld
with:
go-version: ${{matrix.go}}
mod-version: '1.22'
- name: Test Hello World with go.mod 1.23
if: startsWith(matrix.go, '1.23') || startsWith(matrix.go, '1.24')
uses: ./.github/actions/test-helloworld
with:
go-version: ${{matrix.go}}
mod-version: '1.23'
- name: Test Hello World with go.mod 1.24
if: startsWith(matrix.go, '1.24')
uses: ./.github/actions/test-helloworld
with:
go-version: ${{matrix.go}}
mod-version: '1.24'

View File

@@ -32,7 +32,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23.x
go-version: 1.24.x
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with: