Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
fix(cua-sdk): strip release binaries and allow publishing without PyPI (#5847)
ddupont6883d6aadb98
diff --git a/.github/workflows/cd-cua-sdk.yml b/.github/workflows/cd-cua-sdk.ymlindex 100a781936..731c479c1c 100644--- a/.github/workflows/cd-cua-sdk.yml+++ b/.github/workflows/cd-cua-sdk.yml@@ -57,6 +57,10 @@ on:description: "Publish to PyPI/npm and attach to the GitHub release"type: booleandefault: false+ pypi:+ description: "Upload the wheels to PyPI (with publish; off publishes npm, crates and the GitHub release only)"+ type: boolean+ default: truepermissions:contents: read@@ -554,10 +558,14 @@ jobs:TWINE_USERNAME: __token__TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}TEST_PYPI_TOKEN: ${{ secrets.TEST_PYPI_TOKEN }}+ # Tag pushes have no inputs and always upload.+ PYPI: ${{ github.event_name == 'workflow_dispatch' && inputs.pypi == false && 'false' || 'true' }}run: |python -m pip install --upgrade twinepython -m twine check --strict dist/wheel-*/*.whl- if [ "$CANONICAL" = true ]; then+ if [ "$CANONICAL" = true ] && [ "$PYPI" = false ]; then+ echo "::notice::pypi=false: wheels checked, not uploaded to PyPI"+ elif [ "$CANONICAL" = true ]; thenpython -m twine upload --skip-existing dist/wheel-*/*.whlelif [ -n "$TEST_PYPI_TOKEN" ]; thenTWINE_PASSWORD="$TEST_PYPI_TOKEN" python -m twine upload --skip-existing \diff --git a/libs/cua/Cargo.toml b/libs/cua/Cargo.tomlindex ae96b01c21..61a4be1a29 100644--- a/libs/cua/Cargo.toml+++ b/libs/cua/Cargo.toml@@ -215,6 +215,13 @@ cua-media-transport = { path = "crates/cua-media-transport" }cua-media-codec = { path = "crates/cua-media-codec", default-features = false }cua-media-client = { path = "crates/cua-media-client", default-features = false }+# Release binaries ship in the wheels, npm packages, installers and app+# bundles. Their symbol tables roughly doubled the native files and pushed+# the wheels past PyPI's 100 MB per-file limit. The dynamic symbol table+# (what Python, Node and Swift load) is kept.+[profile.release]+strip = "symbols"+# SHA-256 over multi-GiB transfers is unusably slow unoptimised; keep test# builds fast without making every dependency release-mode.[profile.dev.package.sha2]