From 90e542fbd9fb7594f7f994b7fda992e86c6cf112 Mon Sep 17 00:00:00 2001 From: Bira Ignacio Date: Sun, 12 Oct 2025 21:32:16 -0400 Subject: [PATCH] update supported go version update supported go version to 1.25.2 --- .github/workflows/build-linux.yaml | 19 +++++++++++-------- go.mod | 2 +- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-linux.yaml b/.github/workflows/build-linux.yaml index 4d4f4a5..739e2c3 100644 --- a/.github/workflows/build-linux.yaml +++ b/.github/workflows/build-linux.yaml @@ -5,28 +5,31 @@ on: [pull_request] jobs: build-go-linux: name: build-go-linux - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: '1.19.0' + go-version: '1.25.2' - name: Build and test run: go build -a ./... && go test -a -v ./... -count=1 build-cwrapper-linux: name: build-cwrapper-linux - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 + permissions: + contents: read + packages: read container: - image: ghcr.io/bignacio/docker-images/ubuntu-cpp-22.10:1 + image: ghcr.io/bignacio/docker-images/ubuntu-cpp-25.10:1 credentials: username: bignacio - password: ${{ secrets.GHCR_PACKAGES_TOKEN }} + password: ${{ secrets.GITHUB_TOKEN }} strategy: matrix: - compiler: [gcc-12, clang-15] + compiler: [gcc-15, clang-21] steps: - uses: actions/checkout@v3 @@ -34,7 +37,7 @@ jobs: - name: Build and test env: CC: ${{matrix.compiler}} - CXX: clang++-15 # needed to make cmake happy + CXX: clang++-21 # needed to make cmake happy run: | set -e apt install zlib1g-dev @@ -43,4 +46,4 @@ jobs: cmake -B build -DCMAKE_BUILD_TYPE=Debug make -C build build/zwrapper_test_direct - build/zwrapper_test_stream \ No newline at end of file + build/zwrapper_test_stream diff --git a/go.mod b/go.mod index 596c007..043ece2 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/bignacio/gozlib -go 1.19 +go 1.25.2 require github.com/stretchr/testify v1.8.2