Skip to content

Commit 9689984

Browse files
committed
sync(ci): update GitHub Actions cache to v5.0.4
1 parent 1c6ebdf commit 9689984

14 files changed

Lines changed: 38 additions & 29 deletions

File tree

.github/actions/cache-redis-image/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ runs:
126126
- name: 💾 Restore Redis image from cache
127127
if: contains(inputs.cache-mode, 'restore')
128128
id: restore-redis-image
129-
uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
129+
uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
130130
with:
131131
path: ${{ steps.cache-config.outputs.cache-path }}
132132
key: ${{ steps.cache-config.outputs.cache-key }}
@@ -222,7 +222,7 @@ runs:
222222
# --------------------------------------------------------------------
223223
- name: 🗄️ Save Redis image cache
224224
if: contains(inputs.cache-mode, 'save') && steps.save-redis-image.outputs.image-saved == 'true' && steps.restore-redis-image.outputs.cache-hit != 'true'
225-
uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
225+
uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
226226
with:
227227
path: ${{ steps.cache-config.outputs.cache-path }}
228228
key: ${{ steps.cache-config.outputs.cache-key }}

.github/actions/setup-benchstat/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ runs:
8787
- name: 💾 Restore benchstat binary cache
8888
if: steps.version-check.outputs.skip != 'true'
8989
id: benchstat-cache
90-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
90+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
9191
with:
9292
path: ~/.cache/benchstat-bin
9393
key: ${{ inputs.runner-os }}-benchstat-${{ inputs.benchstat-version }}

.github/actions/setup-go-with-cache/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ runs:
215215
# --------------------------------------------------------------------
216216
- name: 💾 Go module cache
217217
id: restore-gomod
218-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
218+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
219219
with:
220220
path: ~/go/pkg/mod
221221
key: ${{ steps.cache-keys.outputs.module-key }}
@@ -289,7 +289,7 @@ runs:
289289
# --------------------------------------------------------------------
290290
- name: 💾 Go build cache
291291
id: restore-gobuild
292-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
292+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
293293
with:
294294
path: |
295295
~/.cache/go-build

.github/actions/setup-goreleaser/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ runs:
7272
- name: 💾 Restore goreleaser binary cache
7373
id: goreleaser-cache
7474
if: steps.check-existing.outputs.exists != 'true'
75-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
75+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
7676
with:
7777
path: |
7878
~/.cache/goreleaser-bin

.github/actions/setup-mage/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ runs:
4747
# --------------------------------------------------------------------
4848
- name: 💾 Restore mage binary cache
4949
id: mage-cache
50-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
50+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
5151
with:
5252
path: ~/.cache/mage-bin
5353
key: ${{ inputs.runner-os }}-mage-${{ inputs.mage-version }}

.github/actions/setup-magex/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ runs:
5353
- name: 💾 Restore magex binary cache
5454
id: magex-cache
5555
if: inputs.use-local != 'true'
56-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
56+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
5757
with:
5858
path: |
5959
~/.cache/magex-bin
@@ -82,7 +82,7 @@ runs:
8282
- name: 💾 Restore magex binary cache (local)
8383
id: magex-local-cache
8484
if: inputs.use-local == 'true'
85-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
85+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
8686
with:
8787
path: |
8888
~/.cache/magex-local

.github/actions/warm-cache/action.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,15 @@ runs:
319319
run: |
320320
set -euo pipefail
321321
GO_MODULE_DIR="${{ env.GO_MODULE_DIR }}"
322+
BUILD_STRATEGY="${MAGE_X_BUILD_STRATEGY:-smart}"
323+
324+
# Allow skipping pre-build entirely (useful when packages OOM on standard runners)
325+
if [ "$BUILD_STRATEGY" == "skip" ]; then
326+
echo "⏭️ Build pre-compilation skipped (MAGE_X_BUILD_STRATEGY=skip)"
327+
echo "ℹ️ Module cache is still warmed — build cache will populate on first real build"
328+
exit 0
329+
fi
330+
322331
echo "🔧 Build cache miss - pre-building packages..."
323332
324333
echo "============================================================"
@@ -333,21 +342,21 @@ runs:
333342
echo "🔧 Multi-module mode - running build commands from repository root"
334343
echo "📦 magex will discover all Go modules and pre-build packages"
335344
# Use configured parallelism to avoid OOM on GitHub Actions runners
336-
magex build:prebuild p="$PARALLEL_JOBS" strategy="${MAGE_X_BUILD_STRATEGY:-smart}" batch_size="${MAGE_X_BUILD_BATCH_SIZE:-20}" batch_delay="${MAGE_X_BUILD_BATCH_DELAY_MS:-0}" exclude="${MAGE_X_BUILD_EXCLUDE_PATTERN:-}"
345+
magex build:prebuild p="$PARALLEL_JOBS" strategy="${BUILD_STRATEGY}" batch_size="${MAGE_X_BUILD_BATCH_SIZE:-20}" batch_delay="${MAGE_X_BUILD_BATCH_DELAY_MS:-0}" exclude="${MAGE_X_BUILD_EXCLUDE_PATTERN:-}"
337346
338347
echo "🏗️ Building stdlib for host platform..."
339348
magex install:stdlib
340349
elif [ -n "$GO_MODULE_DIR" ]; then
341350
echo "🔧 Running build commands from directory: $GO_MODULE_DIR"
342351
# Use configured parallelism to avoid OOM on GitHub Actions runners
343-
(cd "$GO_MODULE_DIR" && magex build:prebuild p="$PARALLEL_JOBS" strategy="${MAGE_X_BUILD_STRATEGY:-smart}" batch_size="${MAGE_X_BUILD_BATCH_SIZE:-20}" batch_delay="${MAGE_X_BUILD_BATCH_DELAY_MS:-0}" exclude="${MAGE_X_BUILD_EXCLUDE_PATTERN:-}")
352+
(cd "$GO_MODULE_DIR" && magex build:prebuild p="$PARALLEL_JOBS" strategy="${BUILD_STRATEGY}" batch_size="${MAGE_X_BUILD_BATCH_SIZE:-20}" batch_delay="${MAGE_X_BUILD_BATCH_DELAY_MS:-0}" exclude="${MAGE_X_BUILD_EXCLUDE_PATTERN:-}")
344353
345354
echo "🏗️ Building stdlib for host platform..."
346355
(cd "$GO_MODULE_DIR" && magex install:stdlib)
347356
else
348357
echo "🔧 Running build commands from repository root"
349358
# Use configured parallelism to avoid OOM on GitHub Actions runners
350-
magex build:prebuild p="$PARALLEL_JOBS" strategy="${MAGE_X_BUILD_STRATEGY:-smart}" batch_size="${MAGE_X_BUILD_BATCH_SIZE:-20}" batch_delay="${MAGE_X_BUILD_BATCH_DELAY_MS:-0}" exclude="${MAGE_X_BUILD_EXCLUDE_PATTERN:-}"
359+
magex build:prebuild p="$PARALLEL_JOBS" strategy="${BUILD_STRATEGY}" batch_size="${MAGE_X_BUILD_BATCH_SIZE:-20}" batch_delay="${MAGE_X_BUILD_BATCH_DELAY_MS:-0}" exclude="${MAGE_X_BUILD_EXCLUDE_PATTERN:-}"
351360
352361
echo "🏗️ Building stdlib for host platform..."
353362
magex install:stdlib
@@ -360,7 +369,7 @@ runs:
360369
# ────────────────────────────────────────────────────────────────────────────
361370
- name: 💾 Save Go build cache
362371
if: steps.setup-go.outputs.build-cache-hit != 'true'
363-
uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
372+
uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
364373
with:
365374
path: |
366375
~/.cache/go-build
@@ -372,7 +381,7 @@ runs:
372381
# ────────────────────────────────────────────────────────────────────────────
373382
- name: 💾 Save Go module cache
374383
if: steps.setup-go.outputs.module-cache-hit != 'true'
375-
uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
384+
uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
376385
with:
377386
path: ~/go/pkg/mod
378387
key: ${{ steps.cache-keys.outputs.module-key }}

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
# Initializes the CodeQL tools for scanning.
4848
- name: Initialize CodeQL
49-
uses: github/codeql-action/init@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0
49+
uses: github/codeql-action/init@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4.34.0
5050
with:
5151
languages: ${{ matrix.language }}
5252
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -57,7 +57,7 @@ jobs:
5757
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5858
# If this step fails, then you should remove it and run the build manually (see below)
5959
- name: Autobuild
60-
uses: github/codeql-action/autobuild@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0
60+
uses: github/codeql-action/autobuild@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4.34.0
6161

6262
# ℹ️ Command-line programs to run using the OS shell.
6363
# 📚 https://git.io/JvXDl
@@ -67,4 +67,4 @@ jobs:
6767
# uses a compiled language
6868

6969
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0
70+
uses: github/codeql-action/analyze@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4.34.0

.github/workflows/fortress-code-quality.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ jobs:
350350
# --------------------------------------------------------------------
351351
- name: 💾 Restore golangci-lint binary cache
352352
id: cache-golangci-lint-binary
353-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
353+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
354354
with:
355355
path: ~/.cache/golangci-lint-bin
356356
key: ${{ inputs.primary-runner }}-golangci-lint-binary-${{ env.MAGE_X_GOLANGCI_LINT_VERSION }}
@@ -379,7 +379,7 @@ jobs:
379379
# --------------------------------------------------------------------
380380
- name: 💾 Cache golangci-lint build cache
381381
id: cache-golangci-lint-build
382-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
382+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
383383
with:
384384
path: ~/.cache/go-build
385385
key: ${{ inputs.primary-runner }}-go-build-golangci-${{ env.MAGE_X_GOLANGCI_LINT_VERSION }}-${{ hashFiles('**/*.go') }}
@@ -391,7 +391,7 @@ jobs:
391391
# --------------------------------------------------------------------
392392
- name: 💾 Cache golangci-lint analysis
393393
id: cache-golangci-lint
394-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
394+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
395395
with:
396396
path: ${{ env.GOLANGCI_LINT_CACHE }}
397397
key: ${{ inputs.primary-runner }}-golangci-lint-analysis-${{ hashFiles('.golangci.json', env.GO_SUM_FILE) }}-${{ steps.golangci-lint-version.outputs.version }}

.github/workflows/fortress-coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ jobs:
193193
- name: 💾 Restore go-coverage binary cache (production)
194194
id: go-coverage-cache
195195
if: env.GO_COVERAGE_USE_LOCAL != 'true'
196-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
196+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
197197
with:
198198
path: |
199199
~/.cache/go-coverage-bin
@@ -204,7 +204,7 @@ jobs:
204204
- name: 💾 Restore go-coverage binary cache (local)
205205
id: go-coverage-local-cache
206206
if: env.GO_COVERAGE_USE_LOCAL == 'true'
207-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
207+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
208208
with:
209209
path: |
210210
~/.cache/go-coverage-local
@@ -2488,7 +2488,7 @@ jobs:
24882488
# This will trigger a "Node.js 20 actions are deprecated" warning until Codecov
24892489
# releases a new version with Node.js 24 support. Expected and harmless for now.
24902490
- name: 📈 Upload coverage to Codecov
2491-
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
2491+
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3
24922492
with:
24932493
#file: ./coverage.txt # This is the old format
24942494
files: ./coverage-artifacts/coverage-data/coverage.txt

0 commit comments

Comments
 (0)