ci: use four-core hosted runners

This commit is contained in:
Tianyi Cui
2026-07-22 14:13:49 +08:00
parent 753d168bb1
commit da1bee87c7
4 changed files with 106 additions and 11 deletions

View File

@@ -14,6 +14,7 @@ on:
options:
- serial-reference
- larger-runner-benchmark
- optimized-larger-runners
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -27,8 +28,8 @@ env:
jobs:
node-24:
if: github.event_name != 'workflow_dispatch'
runs-on: ubuntu-latest
if: github.event_name != 'workflow_dispatch' || inputs.suite == 'optimized-larger-runners'
runs-on: dsh-ubuntu-24-04-4core
name: node 24 / ${{ matrix.lane }}
env:
DSH_GATE_CONCURRENCY: ${{ matrix.gate_concurrency }}
@@ -316,7 +317,7 @@ jobs:
run: ${{ matrix.command }}
node-compat:
if: github.event_name != 'workflow_dispatch'
if: github.event_name != 'workflow_dispatch' || inputs.suite == 'optimized-larger-runners'
runs-on: ubuntu-latest
name: node ${{ matrix.node }}
env:
@@ -359,7 +360,7 @@ jobs:
run: pnpm run check:node-compat
python-sdk:
if: github.event_name != 'workflow_dispatch'
if: github.event_name != 'workflow_dispatch' || inputs.suite == 'optimized-larger-runners'
runs-on: ubuntu-latest
name: python 3.10 / keyless SDK
steps:
@@ -381,8 +382,8 @@ jobs:
# The broader observational gate matrix below exposes the remaining
# portability work without blocking mainline merges.
windows-build:
if: github.event_name != 'workflow_dispatch'
runs-on: windows-2025
if: github.event_name != 'workflow_dispatch' || inputs.suite == 'optimized-larger-runners'
runs-on: dsh-windows-2025-4core
name: windows / build
steps:
- uses: actions/checkout@v6
@@ -400,8 +401,8 @@ jobs:
run: pnpm run build
windows-site:
if: github.event_name != 'workflow_dispatch'
runs-on: windows-2025
if: github.event_name != 'workflow_dispatch' || inputs.suite == 'optimized-larger-runners'
runs-on: dsh-windows-2025-4core
name: windows / production site
steps:
- uses: actions/checkout@v6
@@ -424,9 +425,9 @@ jobs:
# would change the environment being measured. This job intentionally stays
# out of all-checks-passed.needs.
windows-gates:
if: github.event_name != 'workflow_dispatch'
if: github.event_name != 'workflow_dispatch' || inputs.suite == 'optimized-larger-runners'
continue-on-error: true
runs-on: windows-2025
runs-on: dsh-windows-2025-4core
name: windows node 24 / ${{ matrix.lane }}
env:
DSH_GATE_CONCURRENCY: ${{ matrix.gate_concurrency }}
@@ -725,7 +726,7 @@ jobs:
name: all checks passed
runs-on: ubuntu-latest
needs: [node-24, node-compat, python-sdk, windows-build, windows-site]
if: always() && github.event_name != 'workflow_dispatch'
if: always() && (github.event_name != 'workflow_dispatch' || inputs.suite == 'optimized-larger-runners')
steps:
- name: Fail if any needed job did not succeed
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped')