Skip to content

Commit 4166491

Browse files
authored
fix(ci): serialize CUDA builds on the shared runner (#1799)
Signed-off-by: AlpinDale <alpindale@gmail.com>
1 parent 5b0ff3a commit 4166491

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎.github/workflows/platform-wheel.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,9 @@ jobs:
240240
241241
cuda-arm64-wheel:
242242
name: CUDA nightly (aarch64)
243-
needs: authorize
244-
if: ${{ needs.authorize.outputs.build == 'true' && (inputs.platform == '' || inputs.platform == 'all' || inputs.platform == 'cuda' || inputs.platform == 'cuda-arm64') }}
243+
needs: [authorize, cuda-wheel]
244+
if: ${{ !cancelled() && needs.authorize.outputs.build == 'true' && (inputs.platform == '' || inputs.platform == 'all' || inputs.platform == 'cuda' || inputs.platform == 'cuda-arm64') && (needs.cuda-wheel.result == 'success' || needs.cuda-wheel.result == 'skipped') }}
245+
# This label shares the native CUDA/ROCm runner on CPU.
245246
runs-on: [self-hosted, linux, x64, sonar-arm64-wheel-builder]
246247
timeout-minutes: 1440
247248
env:

‎.github/workflows/release-wheel.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ jobs:
8888
8989
cuda-arm64-wheel:
9090
name: CUDA wheel (aarch64)
91+
needs: cuda-wheel
92+
# This label shares the native CUDA/ROCm runner on CPU.
9193
runs-on: [self-hosted, linux, x64, sonar-arm64-wheel-builder]
9294
timeout-minutes: 1440
9395
env:

0 commit comments

Comments
 (0)