From 268fc3d8b403e2e9c40949526359f2356344f36b Mon Sep 17 00:00:00 2001 From: Li Jie Date: Thu, 22 Oct 2026 16:28:44 +0800 Subject: [PATCH 1/2] build: restore Go 1.20 minimum --- .github/workflows/go.yml | 14 ++++++++++++-- go.mod | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 68a819da..96f5f4cf 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -12,18 +12,28 @@ on: jobs: build: + name: build (Go ${{ matrix.go }}) runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + go: ['1.20', '1.23'] + env: + GOTOOLCHAIN: local steps: - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: '1.23' + go-version: ${{ matrix.go }} - name: Build run: go build -v ./... + - name: Test + run: go test ./... + llgo-test: name: llgo-test (${{ matrix.os }}) runs-on: ${{ matrix.os }} diff --git a/go.mod b/go.mod index 62d0899b..5c33b2dd 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/goplus/lib -go 1.23 +go 1.20 From fb93f44d63c3794104cd6778fc64c35e8066d27d Mon Sep 17 00:00:00 2001 From: Li Jie Date: Thu, 22 Oct 2026 16:44:11 +0800 Subject: [PATCH 2/2] ci: cover stable Go alongside the compatibility floor --- .github/workflows/go.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 96f5f4cf..5ef6c9fe 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,8 +17,10 @@ jobs: strategy: fail-fast: false matrix: - go: ['1.20', '1.23'] + # Go 1.20 checks downstream compatibility; stable tracks supported Go. + go: ['1.20', 'stable'] env: + # Use setup-go's selected toolchain without automatic downloads or switches. GOTOOLCHAIN: local steps: - uses: actions/checkout@v4