Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

ci(cua-sdk): ubuntu-only PR lane, full matrix on main, nightly and ci:full (#5159)

injaneity4337bcbd2339
diff --git a/.github/workflows/ci-cua-sdk.yml b/.github/workflows/ci-cua-sdk.yml
index 4426d1430c..0a4466b73e 100644
--- a/.github/workflows/ci-cua-sdk.yml
+++ b/.github/workflows/ci-cua-sdk.yml
@@ -13,9 +13,7 @@ on:
paths:
- "libs/cua/**"
- "libs/spaces-sdk-swift/**"
- # cua-test-fixtures and the Spaces suites link a real driver core.
- - "libs/cua-spacesd/**"
- - "libs/cua-driver/rust/**"
+ - "libs/cua-spacesd/tests/spaces-e2e/**"
- "libs/fleet/sdk/**"
- "libs/fleet/sdk-schema/**"
- ".github/workflows/ci-cua-sdk.yml"
@@ -30,13 +28,15 @@ on:
- "libs/fleet/sdk/**"
- "libs/fleet/sdk-schema/**"
- ".github/workflows/ci-cua-sdk.yml"
+ schedule:
+ - cron: "41 18 * * *"
workflow_dispatch:
permissions:
contents: read
concurrency:
- group: ci-cua-sdk-${{ github.workflow }}-${{ github.ref }}
+ group: ci-cua-sdk-${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
# Only superseded PR runs are cancelled. A main run always finishes, so
# rust-cache saves the warm build that PR runs restore (cancelled main runs
# never saved one, and every smoke job compiled cold).
@@ -63,7 +63,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [ubuntu-latest, macos-26, windows-latest]
+ os: ${{ fromJSON((github.event_name != 'pull_request' || startsWith(github.head_ref, 'release-please--') || contains(github.event.pull_request.labels.*.name, 'ci:full')) && '["ubuntu-latest","macos-26","windows-latest"]' || '["ubuntu-latest"]') }}
defaults:
run:
working-directory: libs/cua
@@ -160,7 +160,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [ubuntu-latest, macos-26]
+ os: ${{ fromJSON((github.event_name != 'pull_request' || startsWith(github.head_ref, 'release-please--') || contains(github.event.pull_request.labels.*.name, 'ci:full')) && '["ubuntu-latest","macos-26"]' || '["ubuntu-latest"]') }}
defaults:
run:
working-directory: libs/cua-spacesd/tests/spaces-e2e
@@ -194,7 +194,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [ubuntu-latest, macos-26]
+ os: ${{ fromJSON((github.event_name != 'pull_request' || startsWith(github.head_ref, 'release-please--') || contains(github.event.pull_request.labels.*.name, 'ci:full')) && '["ubuntu-latest","macos-26"]' || '["ubuntu-latest"]') }}
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: ./.github/actions/linux-rust-prep
@@ -242,7 +242,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [ubuntu-latest, macos-26, windows-latest]
+ os: ${{ fromJSON((github.event_name != 'pull_request' || startsWith(github.head_ref, 'release-please--') || contains(github.event.pull_request.labels.*.name, 'ci:full')) && '["ubuntu-latest","macos-26","windows-latest"]' || '["ubuntu-latest"]') }}
defaults:
run:
shell: bash
@@ -285,7 +285,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [ubuntu-latest, macos-26]
+ os: ${{ fromJSON((github.event_name != 'pull_request' || startsWith(github.head_ref, 'release-please--') || contains(github.event.pull_request.labels.*.name, 'ci:full')) && '["ubuntu-latest","macos-26"]' || '["ubuntu-latest"]') }}
defaults:
run:
working-directory: libs/cua
@@ -351,6 +351,7 @@ jobs:
swift:
name: swift smoke (macOS)
+ if: ${{ github.event_name != 'pull_request' || startsWith(github.head_ref, 'release-please--') || contains(github.event.pull_request.labels.*.name, 'ci:full') }}
runs-on: macos-26
# Cold, the release cua-sdk build alone nears 45 minutes on macos-26.
timeout-minutes: 90