From 5a657569e7f3ea7e890d3114c8bd69cf78fac14d Mon Sep 17 00:00:00 2001 From: n0vad3v Date: Sat, 14 Feb 2026 09:43:38 +0800 Subject: [PATCH] Bump to Go 1.26 --- .github/workflows/codecov.yaml | 2 +- .github/workflows/codeql-analysis.yml | 36 +++++++++++++-------------- .github/workflows/release_binary.yaml | 29 +++++++++++---------- Dockerfile | 2 +- Dockerfile.CI | 2 +- config/config.go | 2 +- go.mod | 2 +- 7 files changed, 37 insertions(+), 38 deletions(-) diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml index 2224d040..2ced4da7 100644 --- a/.github/workflows/codecov.yaml +++ b/.github/workflows/codecov.yaml @@ -19,7 +19,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: '1.25' + go-version: '1.26' - name: Codecov uses: codecov/codecov-action@v2 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ea37e5c0..c5c4771e 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -9,13 +9,13 @@ # the `language` matrix defined below to confirm you have the correct set of # supported CodeQL languages. # -name: "CodeQL" +name: 'CodeQL' on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] schedule: - cron: '32 20 * * 2' @@ -31,24 +31,24 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'go' ] + language: ['go'] steps: - - name: Checkout repository - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: '1.25' + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: '1.26' - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} - - name: Autobuild - uses: github/codeql-action/autobuild@v2 + - name: Autobuild + uses: github/codeql-action/autobuild@v2 - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/release_binary.yaml b/.github/workflows/release_binary.yaml index d5a1f62f..60af8d2f 100644 --- a/.github/workflows/release_binary.yaml +++ b/.github/workflows/release_binary.yaml @@ -16,27 +16,26 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - + - name: Install Go uses: actions/setup-go@v5 with: - go-version: '1.25' + go-version: '1.26' - name: Install dependencies run: | sudo apt update && sudo apt install --no-install-recommends libvips-dev -y - + - name: Make run: | make - + - name: Upload Binary uses: actions/upload-artifact@v4 with: name: webp-server-linux-amd64 path: builds/webp-server-linux-amd64 - build-arm64: name: Create ARM64 Binary runs-on: ubuntu-22.04-arm # Using 22.04 of ubuntu to get the lowest version of glibc @@ -47,22 +46,22 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: '1.25' + go-version: '1.26' - name: Install dependencies run: | sudo apt update && sudo apt install --no-install-recommends libvips-dev -y - + - name: Make run: | make - + - name: Upload Binary uses: actions/upload-artifact@v4 with: name: webp-server-linux-arm64 path: builds/webp-server-linux-arm64 - + release-binary: name: Release Binary runs-on: ubuntu-latest @@ -72,24 +71,24 @@ jobs: uses: actions/download-artifact@v4 with: name: webp-server-linux-amd64 - + - name: Download Binaries uses: actions/download-artifact@v4 with: name: webp-server-linux-arm64 - + - name: Get SHA256 run: | sha256sum webp-server-linux-amd64 > webp-server-linux-amd64.sha256 sha256sum webp-server-linux-arm64 >webp-server-linux-arm64.sha256 - - uses: "marvinpinto/action-automatic-releases@latest" + - uses: 'marvinpinto/action-automatic-releases@latest' with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" + repo_token: '${{ secrets.GITHUB_TOKEN }}' prerelease: true - title: "WebP Server Go" + title: 'WebP Server Go' files: | webp-server-linux-amd64 webp-server-linux-amd64.sha256 webp-server-linux-arm64 - webp-server-linux-arm64.sha256 \ No newline at end of file + webp-server-linux-arm64.sha256 diff --git a/Dockerfile b/Dockerfile index e54fb1e2..fee6c791 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.25-trixie AS builder +FROM golang:1.26-trixie AS builder ARG IMG_PATH=/opt/pics ARG EXHAUST_PATH=/opt/exhaust diff --git a/Dockerfile.CI b/Dockerfile.CI index a212f7bc..9509f780 100644 --- a/Dockerfile.CI +++ b/Dockerfile.CI @@ -1,4 +1,4 @@ -FROM golang:1.25-trixie AS builder +FROM golang:1.26-trixie AS builder ARG IMG_PATH=/opt/pics ARG EXHAUST_PATH=/opt/exhaust diff --git a/config/config.go b/config/config.go index 9f8a0657..a434d576 100644 --- a/config/config.go +++ b/config/config.go @@ -55,7 +55,7 @@ var ( PrefetchForeground bool // Standalone prefetch, prefetch and exit AllowNonImage bool Config = NewWebPConfig() - Version = "0.14.3" + Version = "0.14.4" WriteLock = cache.New(5*time.Minute, 10*time.Minute) ConvertLock = cache.New(5*time.Minute, 10*time.Minute) LocalHostAlias = "local" diff --git a/go.mod b/go.mod index efdec17b..2e72aa0c 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module webp_server_go -go 1.25 +go 1.26 require ( github.com/buckket/go-blurhash v1.1.0