From 60fac0a01096f2ed0bf8974024ee58c3cba79e71 Mon Sep 17 00:00:00 2001 From: Li Jie Date: Sun, 16 Feb 2025 18:14:00 +0800 Subject: [PATCH] ci: test on go1.24 --- .github/workflows/fmt.yml | 2 +- .github/workflows/go.yml | 2 +- .github/workflows/llgo.yml | 32 +++++++++++++++++++++-------- .github/workflows/release-build.yml | 2 +- 4 files changed, 26 insertions(+), 12 deletions(-) diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml index dae0b76d..d4a385e3 100644 --- a/.github/workflows/fmt.yml +++ b/.github/workflows/fmt.yml @@ -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: | diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 02229599..98220048 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 ./... diff --git a/.github/workflows/llgo.yml b/.github/workflows/llgo.yml index b63ea3c5..d111f67b 100644 --- a/.github/workflows/llgo.yml +++ b/.github/workflows/llgo.yml @@ -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' diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index e33cb715..97074874 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -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: