Skip to content

Commit 63a06e3

Browse files
committed
ci: reduce main workflow critical path
1 parent ed9e9aa commit 63a06e3

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ permissions:
2828

2929
concurrency:
3030
group: ${{ github.event_name == 'workflow_dispatch' && format('{0}-manual-v1-{1}', github.workflow, github.run_id) || (github.event_name == 'pull_request' && format('{0}-v7-{1}', github.workflow, github.event.pull_request.number) || (github.repository == 'openclaw/openclaw' && format('{0}-v7-{1}', github.workflow, github.ref) || format('{0}-v7-{1}-{2}', github.workflow, github.ref, github.sha))) }}
31-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
31+
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && github.repository == 'openclaw/openclaw' && github.ref == 'refs/heads/main') }}
3232

3333
env:
3434
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
@@ -466,8 +466,8 @@ jobs:
466466
- name: Audit production dependencies
467467
run: node scripts/pre-commit/pnpm-audit-prod.mjs --audit-level=high
468468

469-
# Warm the lockfile- and pnpm-pinned store once before Linux Node shards fan out.
470-
# On a cold key this job owns the save, so later shards restore the exact key.
469+
# Warm the lockfile- and pnpm-pinned store without blocking Linux Node shards.
470+
# On a cold key this job owns the save for later workflow runs.
471471
pnpm-store-warmup:
472472
permissions:
473473
contents: read
@@ -532,9 +532,9 @@ jobs:
532532
build-artifacts:
533533
permissions:
534534
contents: read
535-
needs: [preflight, pnpm-store-warmup]
535+
needs: [preflight]
536536
if: needs.preflight.outputs.run_build_artifacts == 'true'
537-
runs-on: ${{ github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && 'blacksmith-16vcpu-ubuntu-2404' || 'ubuntu-24.04') }}
537+
runs-on: ${{ github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && 'blacksmith-32vcpu-ubuntu-2404' || 'ubuntu-24.04') }}
538538
timeout-minutes: 20
539539
outputs:
540540
channels-result: ${{ steps.built_artifact_checks.outputs['channels-result'] }}
@@ -763,7 +763,7 @@ jobs:
763763
permissions:
764764
contents: read
765765
name: ${{ matrix.check_name }}
766-
needs: [preflight, pnpm-store-warmup]
766+
needs: [preflight]
767767
if: needs.preflight.outputs.run_checks_fast_core == 'true'
768768
runs-on: ${{ github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && 'blacksmith-4vcpu-ubuntu-2404' || 'ubuntu-24.04') }}
769769
timeout-minutes: 60
@@ -852,7 +852,7 @@ jobs:
852852
permissions:
853853
contents: read
854854
name: ${{ matrix.checkName }}
855-
needs: [preflight, pnpm-store-warmup]
855+
needs: [preflight]
856856
if: needs.preflight.outputs.run_plugin_contracts_shards == 'true'
857857
runs-on: ${{ github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && 'blacksmith-4vcpu-ubuntu-2404' || 'ubuntu-24.04') }}
858858
timeout-minutes: 60
@@ -932,7 +932,7 @@ jobs:
932932
permissions:
933933
contents: read
934934
name: ${{ matrix.checkName }}
935-
needs: [preflight, pnpm-store-warmup]
935+
needs: [preflight]
936936
if: needs.preflight.outputs.run_checks_fast == 'true'
937937
runs-on: ${{ github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && 'blacksmith-4vcpu-ubuntu-2404' || 'ubuntu-24.04') }}
938938
timeout-minutes: 60
@@ -1084,7 +1084,7 @@ jobs:
10841084
permissions:
10851085
contents: read
10861086
name: ${{ matrix.check_name }}
1087-
needs: [preflight, pnpm-store-warmup]
1087+
needs: [preflight]
10881088
if: needs.preflight.outputs.run_checks_node_core_nondist == 'true'
10891089
runs-on: ${{ github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && (matrix.runner || 'blacksmith-8vcpu-ubuntu-2404') || 'ubuntu-24.04') }}
10901090
timeout-minutes: 60
@@ -1190,8 +1190,8 @@ jobs:
11901190
permissions:
11911191
contents: read
11921192
name: ${{ matrix.check_name }}
1193-
needs: [preflight, pnpm-store-warmup]
1194-
if: ${{ !cancelled() && always() && needs.preflight.outputs.run_check == 'true' && needs.pnpm-store-warmup.result == 'success' }}
1193+
needs: [preflight]
1194+
if: ${{ !cancelled() && always() && needs.preflight.outputs.run_check == 'true' }}
11951195
runs-on: ${{ github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && (matrix.runner || 'blacksmith-4vcpu-ubuntu-2404') || 'ubuntu-24.04') }}
11961196
timeout-minutes: 20
11971197
strategy:
@@ -1321,8 +1321,8 @@ jobs:
13211321
permissions:
13221322
contents: read
13231323
name: ${{ matrix.check_name }}
1324-
needs: [preflight, pnpm-store-warmup]
1325-
if: ${{ !cancelled() && always() && needs.preflight.outputs.run_check_additional == 'true' && needs.pnpm-store-warmup.result == 'success' }}
1324+
needs: [preflight]
1325+
if: ${{ !cancelled() && always() && needs.preflight.outputs.run_check_additional == 'true' }}
13261326
runs-on: ${{ github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && 'blacksmith-8vcpu-ubuntu-2404' || 'ubuntu-24.04') }}
13271327
timeout-minutes: 20
13281328
strategy:
@@ -1488,7 +1488,7 @@ jobs:
14881488
check-docs:
14891489
permissions:
14901490
contents: read
1491-
needs: [preflight, pnpm-store-warmup]
1491+
needs: [preflight]
14921492
if: needs.preflight.outputs.run_check_docs == 'true'
14931493
runs-on: ${{ github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && 'blacksmith-4vcpu-ubuntu-2404' || 'ubuntu-24.04') }}
14941494
timeout-minutes: 20
@@ -2113,7 +2113,7 @@ jobs:
21132113
- macos-node
21142114
- macos-swift
21152115
- android
2116-
if: ${{ !cancelled() && always() && (github.event_name != 'pull_request' || !github.event.pull_request.draft) }}
2116+
if: ${{ !cancelled() && always() && github.event_name != 'push' && (github.event_name != 'pull_request' || !github.event.pull_request.draft) }}
21172117
runs-on: ubuntu-24.04
21182118
timeout-minutes: 5
21192119
steps:

0 commit comments

Comments
 (0)