


























@@ -528,14 +528,6 @@ jobs:
528528path: dist/
529529key: ${{ runner.os }}-dist-build-${{ github.sha }}
530530531- - name: Upload dist artifact
532-uses: actions/upload-artifact@v7
533-with:
534-name: dist-build
535-path: dist/
536-compression-level: 0
537-retention-days: 1
538-539531 - name: Upload A2UI bundle artifact
540532uses: actions/upload-artifact@v7
541533with:
@@ -972,12 +964,19 @@ jobs:
972964 echo "OPENCLAW_VITEST_MAX_WORKERS=1" >> "$GITHUB_ENV"
973965 fi
974966975- - name: Download dist artifact
967+ - name: Restore dist cache
976968if: matrix.task == 'test'
977-uses: actions/download-artifact@v8
969+id: checks-dist-cache
970+uses: actions/cache@v5
978971with:
979-name: dist-build
980972path: dist/
973+key: ${{ runner.os }}-dist-build-${{ github.sha }}
974+975+ - name: Verify dist cache
976+if: matrix.task == 'test' && steps.checks-dist-cache.outputs.cache-hit != 'true'
977+run: |
978+ echo "Missing same-run dist cache for ${RUNNER_OS}-dist-build-${GITHUB_SHA}" >&2
979+ exit 1
981980982981 - name: Download A2UI bundle artifact
983982if: matrix.task == 'test' || matrix.task == 'channels'
@@ -1284,12 +1283,11 @@ jobs:
12841283path: dist/
12851284key: ${{ runner.os }}-dist-build-${{ github.sha }}
128612851287- - name: Download dist artifact
1286+ - name: Verify dist cache
12881287if: steps.dist-cache.outputs.cache-hit != 'true'
1289-uses: actions/download-artifact@v8
1290-with:
1291-name: dist-build
1292-path: dist/
1288+run: |
1289+ echo "Missing same-run dist cache for ${RUNNER_OS}-dist-build-${GITHUB_SHA}" >&2
1290+ exit 1
1293129112941292 - name: Download A2UI bundle artifact
12951293uses: actions/download-artifact@v8
@@ -1856,12 +1854,11 @@ jobs:
18561854path: dist/
18571855key: ${{ runner.os }}-dist-build-${{ github.sha }}
185818561859- - name: Download dist artifact
1857+ - name: Verify dist cache
18601858if: github.event_name == 'push' && steps.build-smoke-dist-cache.outputs.cache-hit != 'true'
1861-uses: actions/download-artifact@v8
1862-with:
1863-name: dist-build
1864-path: dist/
1859+run: |
1860+ echo "Missing same-run dist cache for ${RUNNER_OS}-dist-build-${GITHUB_SHA}" >&2
1861+ exit 1
1865186218661863 - name: Build dist
18671864if: github.event_name != 'push'
@@ -2084,8 +2081,8 @@ jobs:
20842081permissions:
20852082contents: read
20862083name: ${{ matrix.check_name }}
2087-needs: [preflight, build-artifacts]
2088-if: ${{ !cancelled() && always() && needs.preflight.outputs.run_macos_node == 'true' && needs.build-artifacts.result == 'success' }}
2084+needs: [preflight]
2085+if: ${{ !cancelled() && always() && needs.preflight.outputs.run_macos_node == 'true' }}
20892086runs-on: ${{ github.repository == 'openclaw/openclaw' && 'blacksmith-6vcpu-macos-latest' || 'macos-latest' }}
20902087timeout-minutes: 20
20912088strategy:
@@ -2103,18 +2100,6 @@ jobs:
21032100with:
21042101install-bun: "false"
210521022106- - name: Download dist artifact
2107-uses: actions/download-artifact@v8
2108-with:
2109-name: dist-build
2110-path: dist/
2111-2112- - name: Download A2UI bundle artifact
2113-uses: actions/download-artifact@v8
2114-with:
2115-name: canvas-a2ui-bundle
2116-path: src/canvas-host/a2ui/
2117-21182103 - name: TS tests (macOS)
21192104env:
21202105NODE_OPTIONS: --max-old-space-size=4096
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。