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.

fix(release): unblock Cua Driver SDK package publishing (#2436)

Francesco Bonacci5f03ba87d6c9
diff --git a/.github/scripts/tests/test_cua_driver_release_wiring.py b/.github/scripts/tests/test_cua_driver_release_wiring.py
index 5a8faea5ec..925e1eee1f 100644
--- a/.github/scripts/tests/test_cua_driver_release_wiring.py
+++ b/.github/scripts/tests/test_cua_driver_release_wiring.py
@@ -35,6 +35,22 @@ class TestCuaDriverReleaseWiring(unittest.TestCase):
self.assertIn("os: ubuntu-24.04-arm", workflow)
self.assertIn("arch: arm64", workflow)
+ def test_python_publish_smokes_windows_arm64_on_arm64(self) -> None:
+ workflow = self.read(".github/workflows/cd-py-cua-driver.yml")
+
+ self.assertIn("os: windows-11-arm", workflow)
+ self.assertEqual(workflow.count("os: windows-latest"), 1)
+
+ def test_npm_publish_uses_explicit_local_tarball_paths(self) -> None:
+ workflow = self.read(".github/workflows/cd-py-cua-driver.yml")
+
+ self.assertIn('npm publish "./$package"', workflow)
+ self.assertIn(
+ 'npm publish "./dist/trycua-cua-driver-$VERSION.tgz"',
+ workflow,
+ )
+ self.assertNotIn('npm publish "$package"', workflow)
+
def test_macos_bundle_explains_screen_capture_and_automation_prompts(self) -> None:
plist = self.read(
"libs/cua-driver/rust/scripts/CuaDriverBundle/Contents/Info.plist"
diff --git a/.github/workflows/cd-py-cua-driver.yml b/.github/workflows/cd-py-cua-driver.yml
index def57fb43e..fd014dd905 100644
--- a/.github/workflows/cd-py-cua-driver.yml
+++ b/.github/workflows/cd-py-cua-driver.yml
@@ -97,7 +97,7 @@ jobs:
- os: windows-latest
platform: windows
arch: x86_64
- - os: windows-latest
+ - os: windows-11-arm
platform: windows
arch: arm64
steps:
@@ -290,7 +290,7 @@ jobs:
if npm view "$NAME@$VERSION" version >/dev/null 2>&1; then
echo "$NAME@$VERSION already published; skipping"
else
- npm publish "$package" --access public --provenance
+ npm publish "./$package" --access public --provenance
fi
done
- name: Publish @trycua/cua-driver
@@ -301,7 +301,7 @@ jobs:
if npm view "@trycua/cua-driver@$VERSION" version >/dev/null 2>&1; then
echo "@trycua/cua-driver@$VERSION already published; skipping"
else
- npm publish "dist/trycua-cua-driver-$VERSION.tgz" --access public --provenance
+ npm publish "./dist/trycua-cua-driver-$VERSION.tgz" --access public --provenance
fi
- name: Attach npm packages to the Cua Driver release
env: