From dde8bae4f0cdd72869c5aaf7768b0d899bed9beb Mon Sep 17 00:00:00 2001 From: Cold Fry Date: Thu, 9 Apr 2026 01:45:27 +0000 Subject: [PATCH 1/3] ci: remove redundant Go build cache setup-go v4+ already caches both module and build caches. The explicit actions/cache with per-SHA keys never got primary hits, causing unnecessary download/upload every run. --- .github/workflows/ci.yml | 27 --------------------------- .github/workflows/pages.yml | 9 --------- 2 files changed, 36 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 937adb8..599216d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,15 +32,6 @@ jobs: with: go-version: "1.26" - - name: Cache Go build - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 - with: - path: ~/.cache/go-build - key: go-build-${{ runner.os }}-${{ hashFiles('go.sum') }}-${{ github.sha }} - restore-keys: | - go-build-${{ runner.os }}-${{ hashFiles('go.sum') }}- - go-build-${{ runner.os }}- - - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 with: node-version: "24" @@ -105,15 +96,6 @@ jobs: with: go-version: "1.26" - - name: Cache Go build - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 - with: - path: ~/.cache/go-build - key: go-build-${{ runner.os }}-${{ hashFiles('go.sum') }}-${{ github.sha }} - restore-keys: | - go-build-${{ runner.os }}-${{ hashFiles('go.sum') }}- - go-build-${{ runner.os }}- - - name: golangci-lint uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9 with: @@ -136,15 +118,6 @@ jobs: with: go-version: "1.26" - - name: Cache Go build - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 - with: - path: ~/.cache/go-build - key: go-build-${{ runner.os }}-${{ hashFiles('go.sum') }}-${{ github.sha }} - restore-keys: | - go-build-${{ runner.os }}-${{ hashFiles('go.sum') }}- - go-build-${{ runner.os }}- - - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 with: node-version: "24" diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 98415ff..d3cde7c 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -35,15 +35,6 @@ jobs: with: go-version: "1.26" - - name: Cache Go build - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 - with: - path: ~/.cache/go-build - key: go-build-${{ runner.os }}-${{ hashFiles('go.sum') }}-${{ github.sha }} - restore-keys: | - go-build-${{ runner.os }}-${{ hashFiles('go.sum') }}- - go-build-${{ runner.os }}- - - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 with: node-version: "24" From 195292b71d7bb8135d9ec64c5cc445a17653fda2 Mon Sep 17 00:00:00 2001 From: Cold Fry Date: Thu, 9 Apr 2026 01:53:19 +0000 Subject: [PATCH 2/3] ci: fix Go build cache key, drop per-SHA suffix --- .github/workflows/ci.yml | 18 ++++++++++++++++++ .github/workflows/pages.yml | 6 ++++++ 2 files changed, 24 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 599216d..ea6c9bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,12 @@ jobs: with: go-version: "1.26" + - name: Cache Go build + uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 + with: + path: ~/.cache/go-build + key: go-build-${{ runner.os }}-${{ hashFiles('go.sum') }} + - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 with: node-version: "24" @@ -96,6 +102,12 @@ jobs: with: go-version: "1.26" + - name: Cache Go build + uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 + with: + path: ~/.cache/go-build + key: go-build-${{ runner.os }}-${{ hashFiles('go.sum') }} + - name: golangci-lint uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9 with: @@ -118,6 +130,12 @@ jobs: with: go-version: "1.26" + - name: Cache Go build + uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 + with: + path: ~/.cache/go-build + key: go-build-${{ runner.os }}-${{ hashFiles('go.sum') }} + - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 with: node-version: "24" diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index d3cde7c..27bfe4b 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -35,6 +35,12 @@ jobs: with: go-version: "1.26" + - name: Cache Go build + uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 + with: + path: ~/.cache/go-build + key: go-build-${{ runner.os }}-${{ hashFiles('go.sum') }} + - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 with: node-version: "24" From 2707abf921a8790be821374f6dba692e63bbef28 Mon Sep 17 00:00:00 2001 From: Cold Fry Date: Thu, 9 Apr 2026 01:54:34 +0000 Subject: [PATCH 3/3] ci: disable codecov PR comments --- codecov.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..69cb760 --- /dev/null +++ b/codecov.yml @@ -0,0 +1 @@ +comment: false