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: give the macOS Swift binding jobs their own compiler cache family (CUA-3134) (#6390)

cua-agents[bot]ead07bdc43f1
diff --git a/.github/workflows/ci-cua-sdk.yml b/.github/workflows/ci-cua-sdk.yml
index ff5af6877b..7d88a1525a 100644
--- a/.github/workflows/ci-cua-sdk.yml
+++ b/.github/workflows/ci-cua-sdk.yml
@@ -811,10 +811,15 @@ jobs:
- name: Install protoc
uses: ./.github/actions/setup-protoc
- uses: dtolnay/[email protected]
+ # Its own family, shared with e2b-bindings.yml (same release cua-sdk and
+ # fixtures; this job also builds the --target slice for the
+ # XCFramework, hence the cap). Main's runs save it; PRs restore it. In
+ # the macOS `libs-cua` family it shared with jobs of other shapes it hit 22%.
- uses: ./.github/actions/rust-cache
with:
workspaces: libs/cua
- key: cua-sdk-swift
+ shared-key: cua-sdk-swift
+ size: 8G
- name: Dev dylib
run: |
cargo build --locked --release -p cua-sdk
diff --git a/.github/workflows/e2b-bindings.yml b/.github/workflows/e2b-bindings.yml
index 37b95162f3..16bc3db2b6 100644
--- a/.github/workflows/e2b-bindings.yml
+++ b/.github/workflows/e2b-bindings.yml
@@ -8,8 +8,10 @@
# label, pushes to main and the nightly schedule. This workflow adds the
# missing piece: the Swift suite (swift/scripts/test.sh, against the release
# dylib and the loopback test fixtures) on ordinary PRs for the binding paths.
-# It uses the same Rust cache family (libs-cua on macOS) as ci-cua-sdk.yml's
-# swift job, which main's pushes and the nightly keep warm.
+# It uses the same Rust cache family (cua-sdk-swift) as ci-cua-sdk.yml's
+# swift job, which main's pushes and the nightly keep warm. (It used to share
+# the macOS `libs-cua` family with jobs of other shapes: 4 GB full of
+# their units, 22% hits, a 35 to 46 minute release build on every PR.)
name: e2b-bindings
on:
@@ -60,6 +62,8 @@ jobs:
- uses: ./.github/actions/rust-cache
with:
workspaces: libs/cua
+ shared-key: cua-sdk-swift
+ size: 8G
- name: Release dylib, test fixtures, Swift suite
run: |
cargo build --locked --release -p cua-sdk