From 7066316db8670cec7057220e8ca462c04c2b2d08 Mon Sep 17 00:00:00 2001 From: Tak Hoffman <781889+Takhoffman@users.noreply.github.com> Date: Sun, 22 Mar 2026 08:59:13 -0500 Subject: [PATCH] ci: hydrate dist before plugin-sdk test lanes (#52267) * ci: hydrate dist before plugin-sdk test lanes * ci: skip bun-only dist build on PRs --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25d2a425ac4..7390025139a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -185,8 +185,8 @@ jobs: run: pnpm release:check checks: - needs: [docs-scope, changed-scope] - if: needs.docs-scope.outputs.docs_only != 'true' && needs.changed-scope.outputs.run_node == 'true' + needs: [docs-scope, changed-scope, build-artifacts] + if: always() && needs.docs-scope.outputs.docs_only != 'true' && needs.changed-scope.outputs.run_node == 'true' && (github.event_name != 'push' || needs.build-artifacts.result == 'success') runs-on: blacksmith-16vcpu-ubuntu-2404 strategy: fail-fast: false @@ -263,6 +263,17 @@ jobs: echo "OPENCLAW_TEST_SHARD_INDEX=$SHARD_INDEX" >> "$GITHUB_ENV" fi + - name: Download dist artifact + if: github.event_name == 'push' && matrix.task == 'test' + uses: actions/download-artifact@v8 + with: + name: dist-build + path: dist/ + + - name: Build dist + if: github.event_name != 'push' && matrix.task == 'test' && matrix.runtime == 'node' + run: pnpm build + - name: Run ${{ matrix.task }} (${{ matrix.runtime }}) if: github.event_name != 'pull_request' || (matrix.runtime != 'bun' && matrix.task != 'compat-node22') run: ${{ matrix.command }} @@ -570,8 +581,8 @@ jobs: run: pre-commit run --all-files pnpm-audit-prod checks-windows: - needs: [docs-scope, changed-scope] - if: needs.docs-scope.outputs.docs_only != 'true' && needs.changed-scope.outputs.run_windows == 'true' + needs: [docs-scope, changed-scope, build-artifacts] + if: always() && needs.docs-scope.outputs.docs_only != 'true' && needs.changed-scope.outputs.run_windows == 'true' && (github.event_name != 'push' || needs.build-artifacts.result == 'success') runs-on: blacksmith-32vcpu-windows-2025 timeout-minutes: 45 env: @@ -691,6 +702,17 @@ jobs: if: matrix.task == 'test' run: pnpm canvas:a2ui:bundle + - name: Download dist artifact + if: github.event_name == 'push' && matrix.task == 'test' + uses: actions/download-artifact@v8 + with: + name: dist-build + path: dist/ + + - name: Build dist (Windows) + if: github.event_name != 'push' && matrix.task == 'test' + run: pnpm build + - name: Run ${{ matrix.task }} (${{ matrix.runtime }}) run: ${{ matrix.command }}