From 14dd890b7636db38366f42431b67cde80a7eb034 Mon Sep 17 00:00:00 2001 From: Matt Edmonston Date: Sat, 14 Nov 2026 05:40:55 +0000 Subject: [PATCH] Build releases with stable Go; test min and stable in CI Release binaries were built with Go 1.22, which is long out of support, so they shipped crypto/tls, net/http, net/smtp and net/mail without the security fixes since. Build with the current stable toolchain. go.mod keeps go 1.22 as the minimum, and CI now tests both 1.22 and stable, linting once on stable. Fixes #27 --- .github/workflows/ci.yaml | 9 +++++---- .github/workflows/release.yaml | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8ccede8..ff9c4ff 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -5,18 +5,19 @@ on: branches: [main] pull_request: -env: - GO_VERSION: "1.22" - jobs: lint-test: runs-on: ubuntu-latest + strategy: + matrix: + go: ["1.22", "stable"] steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: ${{ env.GO_VERSION }} + go-version: ${{ matrix.go }} - name: Lint + if: matrix.go == 'stable' uses: golangci/golangci-lint-action@v8 with: version: v2.15.0 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7b41dda..fd414e3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -10,7 +10,7 @@ permissions: env: # Path to the main package. Use "./cmd/" if you keep a cmd/ layout. MAIN_PACKAGE: "." - GO_VERSION: "1.22" + GO_VERSION: "stable" jobs: binaries: