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
ci: cache protoc and retry cargo/registry downloads (#5130)
Francesco Bonacci5404d1d47da1
diff --git a/.github/actions/setup-protoc/action.yml b/.github/actions/setup-protoc/action.ymlnew file mode 100644index 0000000000..a847ec1bb0--- /dev/null+++ b/.github/actions/setup-protoc/action.yml@@ -0,0 +1,80 @@+name: "Install protoc"+description: >-+ Install a pinned protoc from the official protobuf GitHub release, cached per+ version, OS and architecture with actions/cache. A cache hit makes no network+ call. A miss downloads with curl retries (and falls back to `gh release+ download` with the workflow token), so a transient GitHub releases HTTP 500 or+ socket hang up no longer fails the job before any code runs. Works on Linux,+ macOS and Windows runners and replaces arduino/setup-protoc.++inputs:+ version:+ description: "protoc release, without the leading v (a pinned 29.x release)."+ default: "29.6"+ token:+ description: "Token for the gh fallback download."+ default: ${{ github.token }}++runs:+ using: composite+ steps:+ - name: Resolve protoc asset+ id: asset+ shell: bash+ env:+ VERSION: ${{ inputs.version }}+ RUNNER_OS_NAME: ${{ runner.os }}+ RUNNER_ARCH_NAME: ${{ runner.arch }}+ run: |+ case "${RUNNER_OS_NAME}-${RUNNER_ARCH_NAME}" in+ Linux-X64) asset="linux-x86_64" ;;+ Linux-ARM64) asset="linux-aarch_64" ;;+ macOS-ARM64) asset="osx-aarch_64" ;;+ macOS-X64) asset="osx-x86_64" ;;+ Windows-X64) asset="win64" ;;+ Windows-X86) asset="win32" ;;+ *) echo "::error::No protoc build for ${RUNNER_OS_NAME}-${RUNNER_ARCH_NAME}"; exit 1 ;;+ esac+ dir="${HOME}/.protoc/${VERSION}-${asset}"+ # Native path on Windows so actions/cache and cargo build scripts agree.+ if command -v cygpath >/dev/null 2>&1; then dir="$(cygpath -m "$dir")"; fi+ echo "asset=protoc-${VERSION}-${asset}.zip" >> "$GITHUB_OUTPUT"+ echo "dir=${dir}" >> "$GITHUB_OUTPUT"+ echo "key=protoc-${VERSION}-${asset}" >> "$GITHUB_OUTPUT"+ - name: Restore protoc cache+ id: cache+ uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4+ with:+ path: ${{ steps.asset.outputs.dir }}+ key: ${{ steps.asset.outputs.key }}+ - name: Download protoc (retrying)+ if: steps.cache.outputs.cache-hit != 'true'+ shell: bash+ env:+ VERSION: ${{ inputs.version }}+ ASSET: ${{ steps.asset.outputs.asset }}+ DIR: ${{ steps.asset.outputs.dir }}+ GH_TOKEN: ${{ inputs.token }}+ run: |+ set -euo pipefail+ tmp="$(mktemp -d)"+ url="https://github.com/protocolbuffers/protobuf/releases/download/v${VERSION}/${ASSET}"+ if ! curl --fail --location --silent --show-error \+ --retry 6 --retry-all-errors --retry-delay 5 --connect-timeout 20 \+ --output "${tmp}/${ASSET}" "$url"; then+ echo "::warning::curl failed for ${url}; falling back to gh release download"+ gh release download "v${VERSION}" --repo protocolbuffers/protobuf \+ --pattern "$ASSET" --dir "$tmp" --clobber+ fi+ mkdir -p "$DIR"+ unzip -q -o "${tmp}/${ASSET}" -d "$DIR"+ chmod +x "$DIR/bin/protoc"* 2>/dev/null || true+ - name: Add protoc to PATH+ shell: bash+ env:+ DIR: ${{ steps.asset.outputs.dir }}+ run: |+ echo "${DIR}/bin" >> "$GITHUB_PATH"+ echo "PROTOC=${DIR}/bin/protoc" >> "$GITHUB_ENV"+ echo "PROTOC_INCLUDE=${DIR}/include" >> "$GITHUB_ENV"+ "${DIR}/bin/protoc" --versiondiff --git a/.github/workflows/authorized-live-jev-use-demo.yml b/.github/workflows/authorized-live-jev-use-demo.ymlindex 437385a545..3002f83a92 100644--- a/.github/workflows/authorized-live-jev-use-demo.yml+++ b/.github/workflows/authorized-live-jev-use-demo.yml@@ -80,6 +80,9 @@ concurrency:cancel-in-progress: falseenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/authorized-live-jev-use.yml b/.github/workflows/authorized-live-jev-use.ymlindex 8c69dde963..0e3fbef0cb 100644--- a/.github/workflows/authorized-live-jev-use.yml+++ b/.github/workflows/authorized-live-jev-use.yml@@ -15,6 +15,9 @@ permissions:contents: readenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/bench-streaming.yml b/.github/workflows/bench-streaming.ymlindex 9ba3d4bd98..5e1b36d190 100644--- a/.github/workflows/bench-streaming.yml+++ b/.github/workflows/bench-streaming.yml@@ -41,6 +41,9 @@ concurrency:cancel-in-progress: falseenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/cd-bench-images.yml b/.github/workflows/cd-bench-images.ymlindex ed7aea2481..f7f7e57490 100644--- a/.github/workflows/cd-bench-images.yml+++ b/.github/workflows/cd-bench-images.yml@@ -79,6 +79,9 @@ permissions:contents: readenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/cd-cua-driver-docs.yml b/.github/workflows/cd-cua-driver-docs.ymlindex 3f4b0be337..39cb7a76b6 100644--- a/.github/workflows/cd-cua-driver-docs.yml+++ b/.github/workflows/cd-cua-driver-docs.yml@@ -26,6 +26,9 @@ permissions:pull-requests: writeenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/cd-cua-perception-review-supplied-inputs.yml b/.github/workflows/cd-cua-perception-review-supplied-inputs.ymlindex b4686fc122..5c5f0cd6f9 100644--- a/.github/workflows/cd-cua-perception-review-supplied-inputs.yml+++ b/.github/workflows/cd-cua-perception-review-supplied-inputs.yml@@ -55,6 +55,9 @@ concurrency:cancel-in-progress: falseenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/cd-cua-perception.yml b/.github/workflows/cd-cua-perception.ymlindex b05f6ce4c3..8167319f0d 100644--- a/.github/workflows/cd-cua-perception.yml+++ b/.github/workflows/cd-cua-perception.yml@@ -48,6 +48,9 @@ concurrency:cancel-in-progress: ${{ github.event_name == 'pull_request' }}env:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Reviewed OmniParser icon-detect ONNX conversion. The bytes are verified# against the icon-detect entry in artifacts.lock.json before use.REVIEWED_MODEL_ASSET_ID: "571471639"diff --git a/.github/workflows/cd-cua-sdk.yml b/.github/workflows/cd-cua-sdk.ymlindex 3a6ad41845..f501e06d54 100644--- a/.github/workflows/cd-cua-sdk.yml+++ b/.github/workflows/cd-cua-sdk.yml@@ -53,6 +53,9 @@ permissions:contents: readenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -162,10 +165,7 @@ jobs:apt-get install -y nodejs- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: dtolnay/[email protected]with:targets: ${{ matrix.target }}@@ -349,10 +349,7 @@ jobs:with:targets: wasm32-unknown-unknown- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: actions/download-artifact@v4with:pattern: native-*@@ -391,10 +388,7 @@ jobs:steps:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: dtolnay/[email protected]with:targets: aarch64-apple-darwin,x86_64-apple-darwin,aarch64-apple-ios,aarch64-apple-ios-simdiff --git a/.github/workflows/cd-cua-spaces.yml b/.github/workflows/cd-cua-spaces.ymlindex 28260ffd48..13cd3ac77b 100644--- a/.github/workflows/cd-cua-spaces.yml+++ b/.github/workflows/cd-cua-spaces.yml@@ -173,6 +173,9 @@ defaults:working-directory: apps/cua-spacesenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -316,10 +319,7 @@ jobs:targets: aarch64-apple-darwin,x86_64-apple-darwin,wasm32-unknown-unknown- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Cache cargouses: actions/cache@v4@@ -586,10 +586,7 @@ jobs:rustup target add wasm32-unknown-unknowncargo install wasm-bindgen-cli --version 0.2.126 --locked- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Install Linux build dependenciesif: runner.os == 'Linux'run: |@@ -857,10 +854,7 @@ jobs:with:targets: ${{ matrix.target }}- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Install Linux build dependenciesif: runner.os == 'Linux'run: sudo apt-get update && sudo apt-get install -y --no-install-recommends build-essential cmake pkg-config libssl-dev@@ -937,10 +931,7 @@ jobs:with:targets: aarch64-apple-darwin,x86_64-apple-darwin,wasm32-unknown-unknown- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Install wasm-bindgen (the web UI's app core)run: cargo install wasm-bindgen-cli --version 0.2.126 --locked- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4@@ -1175,10 +1166,7 @@ jobs:with:targets: x86_64-pc-windows-msvc,wasm32-unknown-unknown- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Install wasm-bindgen (the web UI's app core)run: cargo install wasm-bindgen-cli --version 0.2.126 --locked- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4@@ -1275,10 +1263,7 @@ jobs:with:targets: x86_64-unknown-linux-gnu,wasm32-unknown-unknown- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Install Linux build dependenciesrun: sudo apt-get update && sudo apt-get install -y --no-install-recommends build-essential cmake pkg-config libssl-dev- name: Install wasm-bindgen (the web UI's app core)diff --git a/.github/workflows/cd-cua-spacesd.yml b/.github/workflows/cd-cua-spacesd.ymlindex 521313f2d8..ad87777d03 100644--- a/.github/workflows/cd-cua-spacesd.yml+++ b/.github/workflows/cd-cua-spacesd.yml@@ -53,6 +53,9 @@ concurrency:cancel-in-progress: falseenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -154,10 +157,7 @@ jobs:- name: Install build dependenciesrun: bash libs/cua-spacesd/packaging/release/debian-build-deps.sh- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87 # stablewith:targets: ${{ matrix.target }}@@ -209,10 +209,7 @@ jobs:with:ref: ${{ needs.version.outputs.ref }}- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87 # stablewith:targets: aarch64-apple-darwin, x86_64-apple-darwin@@ -375,10 +372,7 @@ jobs:with:ref: ${{ needs.version.outputs.ref }}- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87 # stablewith:targets: x86_64-pc-windows-msvcdiff --git a/.github/workflows/cd-image-linux.yml b/.github/workflows/cd-image-linux.ymlindex 3ffd246896..7218553725 100644--- a/.github/workflows/cd-image-linux.yml+++ b/.github/workflows/cd-image-linux.yml@@ -126,6 +126,9 @@ permissions:contents: readenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/cd-image-macos.yml b/.github/workflows/cd-image-macos.ymlindex abdbcbd66c..51411f83a4 100644--- a/.github/workflows/cd-image-macos.yml+++ b/.github/workflows/cd-image-macos.yml@@ -62,6 +62,11 @@ concurrency:group: cd-image-macoscancel-in-progress: false+env:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"+jobs:plan:runs-on: ubuntu-latestdiff --git a/.github/workflows/cd-image-omarchy.yml b/.github/workflows/cd-image-omarchy.ymlindex 2c4c6dcfe7..b2db449931 100644--- a/.github/workflows/cd-image-omarchy.yml+++ b/.github/workflows/cd-image-omarchy.yml@@ -85,6 +85,9 @@ permissions:contents: readenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/cd-image-windows.yml b/.github/workflows/cd-image-windows.ymlindex 2bbee71cda..6fc3b7e0a7 100644--- a/.github/workflows/cd-image-windows.yml+++ b/.github/workflows/cd-image-windows.yml@@ -52,6 +52,9 @@ concurrency:cancel-in-progress: falseenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"CARGO_TERM_COLOR: alwaysCARGO_INCREMENTAL: "0"CARGO_BUILD_JOBS: "4"@@ -77,10 +80,7 @@ jobs:steps:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87 # stablewith:targets: x86_64-pc-windows-msvcdiff --git a/.github/workflows/cd-images-spacesd-release.yml b/.github/workflows/cd-images-spacesd-release.ymlindex 2563c19d2e..dff64fa5bd 100644--- a/.github/workflows/cd-images-spacesd-release.yml+++ b/.github/workflows/cd-images-spacesd-release.yml@@ -60,6 +60,11 @@ concurrency:group: cd-images-spacesd-releasecancel-in-progress: false+env:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"+jobs:resolve:# Registry names belong to trycua/cua (staging builds no images); only a@@ -176,10 +181,7 @@ jobs:ref: maintoken: ${{ steps.app-token.outputs.token }}- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Tools (crane, oras, jq, zstd) and Rustrun: |scripts/images/install-release-tools.sh --push-onlydiff --git a/.github/workflows/cd-rust-cua-driver.yml b/.github/workflows/cd-rust-cua-driver.ymlindex 5be445a96c..2a8da2ebf6 100644--- a/.github/workflows/cd-rust-cua-driver.yml+++ b/.github/workflows/cd-rust-cua-driver.yml@@ -85,6 +85,9 @@ concurrency:cancel-in-progress: falseenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/ci-check-docs.yml b/.github/workflows/ci-check-docs.ymlindex 83a02d58ac..7528e1aed3 100644--- a/.github/workflows/ci-check-docs.yml+++ b/.github/workflows/ci-check-docs.yml@@ -45,6 +45,9 @@ permissions:contents: readenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -176,10 +179,7 @@ jobs:libei-dev libxkbcommon-dev libx11-dev libxi-dev libxtst-dev libxext-dev- name: Install protoc (cua SDK generators)if: contains(fromJSON('["cua-cli","cua-sdk","cua-rust","fleet"]'), matrix.library)- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Install pinned Rust toolchain (cua SDK generators)if: contains(fromJSON('["cua-cli","cua-sdk","cua-rust","fleet"]'), matrix.library)uses: dtolnay/[email protected]diff --git a/.github/workflows/ci-cua-byoc.yml b/.github/workflows/ci-cua-byoc.ymlindex 0d5effeeb7..cf4c0701e0 100644--- a/.github/workflows/ci-cua-byoc.yml+++ b/.github/workflows/ci-cua-byoc.yml@@ -22,6 +22,9 @@ permissions:contents: readenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -40,10 +43,7 @@ jobs:steps:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: dtolnay/[email protected]with:components: clippy, rustfmtdiff --git a/.github/workflows/ci-cua-contrib.yml b/.github/workflows/ci-cua-contrib.ymlindex 9ca89e7b0a..c9cd26fb62 100644--- a/.github/workflows/ci-cua-contrib.yml+++ b/.github/workflows/ci-cua-contrib.yml@@ -38,6 +38,9 @@ concurrency:cancel-in-progress: trueenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -56,10 +59,7 @@ jobs:steps:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: dtolnay/[email protected]with:components: clippy, rustfmt@@ -122,10 +122,7 @@ jobs:steps:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: dtolnay/[email protected]- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2with:diff --git a/.github/workflows/ci-cua-driver-contract-clients.yml b/.github/workflows/ci-cua-driver-contract-clients.ymlindex 61d3bcd1a8..ad9813cbb3 100644--- a/.github/workflows/ci-cua-driver-contract-clients.yml+++ b/.github/workflows/ci-cua-driver-contract-clients.yml@@ -68,6 +68,9 @@ concurrency:cancel-in-progress: trueenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/ci-cua-driver-quick.yml b/.github/workflows/ci-cua-driver-quick.ymlindex 860db3e171..165a53b669 100644--- a/.github/workflows/ci-cua-driver-quick.yml+++ b/.github/workflows/ci-cua-driver-quick.yml@@ -16,6 +16,9 @@ concurrency:cancel-in-progress: trueenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/ci-cua-driver-valgrind.yml b/.github/workflows/ci-cua-driver-valgrind.ymlindex bea0d9a64d..741899c57b 100644--- a/.github/workflows/ci-cua-driver-valgrind.yml+++ b/.github/workflows/ci-cua-driver-valgrind.yml@@ -24,6 +24,9 @@ concurrency:cancel-in-progress: trueenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/ci-cua-perception-release.yml b/.github/workflows/ci-cua-perception-release.ymlindex 92f766bdcd..39b09d61c1 100644--- a/.github/workflows/ci-cua-perception-release.yml+++ b/.github/workflows/ci-cua-perception-release.yml@@ -51,6 +51,9 @@ permissions:contents: readenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -78,6 +81,9 @@ jobs:- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:persist-credentials: false+ - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2+ with:+ workspaces: libs/cua-driver/rust- name: Compile and test Cua Perceptionworking-directory: libs/cua-driver/rustrun: cargo test --locked -p cua-perceptiondiff --git a/.github/workflows/ci-cua-proto.yml b/.github/workflows/ci-cua-proto.ymlindex 4dc8f1a227..171dfcdf6d 100644--- a/.github/workflows/ci-cua-proto.yml+++ b/.github/workflows/ci-cua-proto.yml@@ -30,6 +30,9 @@ concurrency:cancel-in-progress: trueenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -64,10 +67,7 @@ jobs:steps:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Install pinned Rust toolchainuses: dtolnay/[email protected]with:diff --git a/.github/workflows/ci-cua-s1-weights.yml b/.github/workflows/ci-cua-s1-weights.ymlindex 6f928d39c8..3a04a9c550 100644--- a/.github/workflows/ci-cua-s1-weights.yml+++ b/.github/workflows/ci-cua-s1-weights.yml@@ -41,6 +41,9 @@ concurrency:cancel-in-progress: ${{ github.event_name == 'pull_request' }}env:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"CUA_TELEMETRY_ENABLED: "false"HF_HUB_DISABLE_TELEMETRY: "1"PYTHONHASHSEED: "0"diff --git a/.github/workflows/ci-cua-sdk.yml b/.github/workflows/ci-cua-sdk.ymlindex 0a1fb51008..4426d1430c 100644--- a/.github/workflows/ci-cua-sdk.yml+++ b/.github/workflows/ci-cua-sdk.yml@@ -43,6 +43,9 @@ concurrency:cancel-in-progress: ${{ github.event_name == 'pull_request' }}env:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -69,10 +72,7 @@ jobs:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4- uses: ./.github/actions/linux-rust-prep- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Install pinned Rust toolchainuses: dtolnay/[email protected]with:@@ -169,10 +169,7 @@ jobs:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4- uses: ./.github/actions/linux-rust-prep- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: dtolnay/[email protected]with:components: clippy, rustfmt@@ -202,10 +199,7 @@ jobs:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4- uses: ./.github/actions/linux-rust-prep- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: dtolnay/[email protected]- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2with:@@ -256,10 +250,7 @@ jobs:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4- uses: ./.github/actions/linux-rust-prep- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: dtolnay/[email protected]- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2with:@@ -302,10 +293,7 @@ jobs:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4- uses: ./.github/actions/linux-rust-prep- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: dtolnay/[email protected]- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2with:@@ -337,10 +325,7 @@ jobs:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4- uses: ./.github/actions/linux-rust-prep- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: dtolnay/[email protected]with:targets: wasm32-unknown-unknown@@ -375,10 +360,7 @@ jobs:steps:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: dtolnay/[email protected]- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2with:diff --git a/.github/workflows/ci-cua-spaces-macos.yml b/.github/workflows/ci-cua-spaces-macos.ymlindex 38b4ae7fed..d8ee5de4db 100644--- a/.github/workflows/ci-cua-spaces-macos.yml+++ b/.github/workflows/ci-cua-spaces-macos.yml@@ -40,6 +40,11 @@ concurrency:group: ci-cua-spaces-macos-${{ github.ref }}cancel-in-progress: true+env:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"+jobs:core:name: app core (Rust) + FFI mirror gate@@ -51,11 +56,11 @@ jobs:- uses: actions/checkout@v4- name: Install Rust (toolchain from rust-toolchain.toml)run: rustup show active-toolchain || rustup toolchain install- - name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0+ - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ workspaces: libs/cua+ - name: Install protoc+ uses: ./.github/actions/setup-protoc- name: FFI mirrors match the corerun: python3 scripts/generate-app-core-ffi.py --check- name: No UI keeps its own icon cache@@ -81,11 +86,11 @@ jobs:working-directory: libs/cuarun: rustup show active-toolchain || rustup toolchain install- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc# The app loads the Cua Spaces app export (libcua_spaces_ffi, which+ - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2+ with:+ workspaces: libs/cua# carries the cua SDK too), staged as libs/cua/swift/lib/libcua_sdk.dylib.- name: Build and stage the Cua Spaces app libraryworking-directory: libs/cuadiff --git a/.github/workflows/ci-cua-spaces-web.yml b/.github/workflows/ci-cua-spaces-web.ymlindex 96d6ca67e0..839ada9842 100644--- a/.github/workflows/ci-cua-spaces-web.yml+++ b/.github/workflows/ci-cua-spaces-web.yml@@ -32,6 +32,9 @@ concurrency:cancel-in-progress: trueenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -47,6 +50,9 @@ jobs:rustup show active-toolchain || rustup toolchain installrustup target add wasm32-unknown-unknowncargo install wasm-bindgen-cli --version 0.2.126 --locked+ - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2+ with:+ workspaces: apps/cua-spaces/core-wasm# pnpm from the Electron shell's packageManager ([email protected]); the# root package.json pins pnpm 9 for the rest of the repo.- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4@@ -89,6 +95,9 @@ jobs:rustup show active-toolchain || rustup toolchain installrustup target add wasm32-unknown-unknowncargo install wasm-bindgen-cli --version 0.2.126 --locked+ - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2+ with:+ workspaces: apps/cua-spaces/core-wasm# pnpm from the Electron shell's packageManager ([email protected]); the# root package.json pins pnpm 9 for the rest of the repo.- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4diff --git a/.github/workflows/ci-cua-spaces.yml b/.github/workflows/ci-cua-spaces.ymlindex 96ab8447dc..5944d7b31f 100644--- a/.github/workflows/ci-cua-spaces.yml+++ b/.github/workflows/ci-cua-spaces.yml@@ -37,6 +37,9 @@ defaults:working-directory: apps/cua-spacesenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -55,6 +58,9 @@ jobs:rustup show active-toolchain || rustup toolchain installrustup target add wasm32-unknown-unknowncargo install wasm-bindgen-cli --version 0.2.126 --locked+ - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2+ with:+ workspaces: libs/cua- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4- uses: actions/setup-node@v4with:@@ -105,10 +111,7 @@ jobs:rustup target add wasm32-unknown-unknowncargo install wasm-bindgen-cli --version 0.2.126 --locked- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Install Linux build dependenciesif: runner.os == 'Linux'run: |diff --git a/.github/workflows/ci-cua-spacesd-html5.yml b/.github/workflows/ci-cua-spacesd-html5.ymlindex 2b54443aa0..23e864899f 100644--- a/.github/workflows/ci-cua-spacesd-html5.yml+++ b/.github/workflows/ci-cua-spacesd-html5.yml@@ -28,6 +28,9 @@ concurrency:cancel-in-progress: trueenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -64,5 +67,8 @@ jobs:steps:- uses: actions/checkout@v4- uses: dtolnay/rust-toolchain@stable+ - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2+ with:+ workspaces: libs/cua- run: cargo fmt -p cua-spacesd-html5 -- --check- run: cargo test --locked -p cua-spacesd-html5 --features standalonediff --git a/.github/workflows/ci-cua-spacesd.yml b/.github/workflows/ci-cua-spacesd.ymlindex 8637f4dfdc..8a59ce40bd 100644--- a/.github/workflows/ci-cua-spacesd.yml+++ b/.github/workflows/ci-cua-spacesd.yml@@ -52,6 +52,9 @@ concurrency:cancel-in-progress: trueenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -82,10 +85,7 @@ jobs:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4# cua-proto (the cua.env.v1 contract) is generated at build time.- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: dtolnay/rust-toolchain@stablewith:components: rustfmt, clippy@@ -154,10 +154,7 @@ jobs:steps:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: dtolnay/rust-toolchain@stable- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2with:diff --git a/.github/workflows/ci-driver-mcp-candidate.yml b/.github/workflows/ci-driver-mcp-candidate.ymlindex b8c94ecd84..83374f2eb7 100644--- a/.github/workflows/ci-driver-mcp-candidate.yml+++ b/.github/workflows/ci-driver-mcp-candidate.yml@@ -20,6 +20,11 @@ concurrency:group: driver-mcp-candidate-${{ github.ref }}cancel-in-progress: true+env:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"+jobs:candidate:name: MCP candidate (${{ matrix.os }})diff --git a/.github/workflows/ci-image-api.yml b/.github/workflows/ci-image-api.ymlindex d73cc525ce..d7bfefaaf6 100644--- a/.github/workflows/ci-image-api.yml+++ b/.github/workflows/ci-image-api.yml@@ -35,6 +35,9 @@ permissions:contents: readenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -63,10 +66,7 @@ jobs:# cua-sandbox imports the cua SDK, whose Python package loads the# native cua-sdk library: build and stage it before installing.- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Install pinned Rust toolchainuses: dtolnay/[email protected]diff --git a/.github/workflows/ci-infinite-canvas-swift.yml b/.github/workflows/ci-infinite-canvas-swift.ymlindex 18815461be..5329382a04 100644--- a/.github/workflows/ci-infinite-canvas-swift.yml+++ b/.github/workflows/ci-infinite-canvas-swift.yml@@ -27,6 +27,9 @@ concurrency:cancel-in-progress: trueenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"CARGO_TERM_COLOR: alwaysCARGO_BUILD_JOBS: "4"@@ -40,10 +43,7 @@ jobs:with:persist-credentials: false- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Install pinned Rust toolchainuses: dtolnay/[email protected]- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2diff --git a/.github/workflows/ci-jev-use.yml b/.github/workflows/ci-jev-use.ymlindex d9d660f8e9..976e97f713 100644--- a/.github/workflows/ci-jev-use.yml+++ b/.github/workflows/ci-jev-use.yml@@ -54,6 +54,9 @@ defaults:working-directory: libs/cua-driver/examples/jev-useenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -119,6 +122,9 @@ jobs:with:ref: ${{ github.event.pull_request.head.sha || github.sha }}- uses: dtolnay/rust-toolchain@4716b85f2fac3e324e64fa2810f6b5c3905760a5 # 1.97.1+ - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2+ with:+ workspaces: libs/cua-driver/rust- uses: actions/setup-python@v5with:python-version: "3.12"diff --git a/.github/workflows/ci-lockfiles.yml b/.github/workflows/ci-lockfiles.ymlindex ab3f86df70..8252ec7f58 100644--- a/.github/workflows/ci-lockfiles.yml+++ b/.github/workflows/ci-lockfiles.yml@@ -44,6 +44,11 @@ concurrency:group: ci-lockfiles-${{ github.workflow }}-${{ github.ref }}cancel-in-progress: true+env:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"+jobs:lockfiles:name: lockfiles match manifestsdiff --git a/.github/workflows/ci-openkoalabot-example-samples.yml b/.github/workflows/ci-openkoalabot-example-samples.ymlindex 244e1dbb64..61de8d1192 100644--- a/.github/workflows/ci-openkoalabot-example-samples.yml+++ b/.github/workflows/ci-openkoalabot-example-samples.yml@@ -28,6 +28,9 @@ concurrency:cancel-in-progress: trueenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -44,10 +47,7 @@ jobs:with:persist-credentials: false- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Install pinned Rust toolchainuses: dtolnay/[email protected]with:@@ -93,10 +93,7 @@ jobs:with:persist-credentials: false- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Install pinned Rust toolchainuses: dtolnay/[email protected]- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2diff --git a/.github/workflows/ci-openkoalabot-example-tauri.yml b/.github/workflows/ci-openkoalabot-example-tauri.ymlindex a7f9de5c55..0376e11652 100644--- a/.github/workflows/ci-openkoalabot-example-tauri.yml+++ b/.github/workflows/ci-openkoalabot-example-tauri.yml@@ -28,6 +28,9 @@ defaults:working-directory: samples/openkoalabot-example-taurienv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -57,10 +60,7 @@ jobs:working-directory: samples/openkoalabot-example-tauri/src-taurirun: rustup show active-toolchain || rustup toolchain install- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Install Linux build dependencies (Tauri)run: |sudo apt-get updatediff --git a/.github/workflows/ci-platform-linux-portability.yml b/.github/workflows/ci-platform-linux-portability.ymlindex 86c984a411..28b2d7ba5a 100644--- a/.github/workflows/ci-platform-linux-portability.yml+++ b/.github/workflows/ci-platform-linux-portability.yml@@ -40,6 +40,11 @@ concurrency:group: platform-linux-portability-${{ github.ref }}cancel-in-progress: ${{ github.event_name == 'pull_request' }}+env:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"+jobs:platform-linux-off-linux:name: platform-linux compiles on macOSdiff --git a/.github/workflows/ci-py-cli-wif-token.yml b/.github/workflows/ci-py-cli-wif-token.ymlindex 02130c6bb4..4ffde31d57 100644--- a/.github/workflows/ci-py-cli-wif-token.yml+++ b/.github/workflows/ci-py-cli-wif-token.yml@@ -17,6 +17,9 @@ permissions:id-token: writeenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -28,10 +31,7 @@ jobs:steps:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- uses: dtolnay/[email protected]- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2with:diff --git a/.github/workflows/ci-rust-format.yml b/.github/workflows/ci-rust-format.ymlindex c7c1dfb231..c0cc80bb4d 100644--- a/.github/workflows/ci-rust-format.yml+++ b/.github/workflows/ci-rust-format.yml@@ -19,6 +19,11 @@ concurrency:group: ci-rust-format-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}cancel-in-progress: true+env:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"+jobs:format:name: Rustfmt (${{ matrix.os }})diff --git a/.github/workflows/ci-rust-linux.yml b/.github/workflows/ci-rust-linux.ymlindex 4baa26f7a4..a9f939f2e4 100644--- a/.github/workflows/ci-rust-linux.yml+++ b/.github/workflows/ci-rust-linux.yml@@ -56,6 +56,9 @@ concurrency:cancel-in-progress: trueenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/ci-rust-macos.yml b/.github/workflows/ci-rust-macos.ymlindex 6774001042..703facef2e 100644--- a/.github/workflows/ci-rust-macos.yml+++ b/.github/workflows/ci-rust-macos.yml@@ -45,6 +45,11 @@ concurrency:group: ci-rust-macos-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}cancel-in-progress: true+env:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"+jobs:unit:name: Rust macOS unitdiff --git a/.github/workflows/ci-rust-windows.yml b/.github/workflows/ci-rust-windows.ymlindex b6fb5a5abe..af44ae7e6d 100644--- a/.github/workflows/ci-rust-windows.yml+++ b/.github/workflows/ci-rust-windows.yml@@ -51,6 +51,9 @@ concurrency:cancel-in-progress: trueenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/ci-swift-linker.yml b/.github/workflows/ci-swift-linker.ymlindex 2854514856..46376d7a19 100644--- a/.github/workflows/ci-swift-linker.yml+++ b/.github/workflows/ci-swift-linker.yml@@ -38,6 +38,9 @@ concurrency:cancel-in-progress: trueenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/ci-test-python.yml b/.github/workflows/ci-test-python.ymlindex 5e007ac2f2..9f27d88533 100644--- a/.github/workflows/ci-test-python.yml+++ b/.github/workflows/ci-test-python.yml@@ -17,6 +17,11 @@ on:permissions:contents: read+env:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"+jobs:test:name: Test ${{ matrix.package }}@@ -101,10 +106,7 @@ jobs:- uses: ./.github/actions/linux-rust-prep- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Install pinned Rust toolchainuses: dtolnay/[email protected]diff --git a/.github/workflows/clawhub-cua-driver.yml b/.github/workflows/clawhub-cua-driver.ymlindex 95901d6805..f50a31da02 100644--- a/.github/workflows/clawhub-cua-driver.yml+++ b/.github/workflows/clawhub-cua-driver.yml@@ -29,6 +29,9 @@ permissions:id-token: writeenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/e2e-cua-sdk.yml b/.github/workflows/e2e-cua-sdk.ymlindex 77ca4e827b..75c984975a 100644--- a/.github/workflows/e2e-cua-sdk.yml+++ b/.github/workflows/e2e-cua-sdk.yml@@ -46,6 +46,9 @@ concurrency:cancel-in-progress: trueenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -74,10 +77,7 @@ jobs:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4- uses: ./.github/actions/linux-rust-prep- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Install pinned Rust toolchainuses: dtolnay/[email protected]with:@@ -155,10 +155,7 @@ jobs:# push of this file a startup failure); set it for the later steps here.- run: echo "CUA_E2E_PLAYWRIGHT_DIR=$RUNNER_TEMP/pw" >>"$GITHUB_ENV"- name: Install protoc- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0- with:- version: "29.x"- repo-token: ${{ secrets.GITHUB_TOKEN }}+ uses: ./.github/actions/setup-protoc- name: Install pinned Rust toolchainuses: dtolnay/[email protected]with:diff --git a/.github/workflows/e2e-rust-linux-wayland.yml b/.github/workflows/e2e-rust-linux-wayland.ymlindex d3a7736fed..b4560b08c2 100644--- a/.github/workflows/e2e-rust-linux-wayland.yml+++ b/.github/workflows/e2e-rust-linux-wayland.yml@@ -36,6 +36,9 @@ permissions:actions: readenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/e2e-rust-linux.yml b/.github/workflows/e2e-rust-linux.ymlindex 1c5b8baf10..5803650688 100644--- a/.github/workflows/e2e-rust-linux.yml+++ b/.github/workflows/e2e-rust-linux.yml@@ -46,6 +46,9 @@ permissions:actions: readenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/e2e-rust-standalone-browsers.yml b/.github/workflows/e2e-rust-standalone-browsers.ymlindex 89d402227d..edc70acda9 100644--- a/.github/workflows/e2e-rust-standalone-browsers.yml+++ b/.github/workflows/e2e-rust-standalone-browsers.yml@@ -20,6 +20,9 @@ permissions:actions: readenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"@@ -87,6 +90,9 @@ jobs:with:ref: ${{ needs.source.outputs.sha }}- uses: dtolnay/rust-toolchain@4716b85f2fac3e324e64fa2810f6b5c3905760a5 # 1.97.1+ - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2+ with:+ workspaces: libs/cua-driver/rust- name: Install Windows video toolsif: runner.os == 'Windows'shell: pwshdiff --git a/.github/workflows/e2e-rust-windows.yml b/.github/workflows/e2e-rust-windows.ymlindex fa28469212..df0a5bfcd9 100644--- a/.github/workflows/e2e-rust-windows.yml+++ b/.github/workflows/e2e-rust-windows.yml@@ -46,6 +46,9 @@ permissions:actions: readenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/fuzz-cua-driver.yml b/.github/workflows/fuzz-cua-driver.ymlindex a8a0afdc15..5fa2e06abb 100644--- a/.github/workflows/fuzz-cua-driver.yml+++ b/.github/workflows/fuzz-cua-driver.yml@@ -33,6 +33,11 @@ concurrency:group: fuzz-cua-driver-${{ github.workflow }}-${{ github.ref }}cancel-in-progress: true+env:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"+jobs:fuzz:name: ${{ matrix.target }}diff --git a/.github/workflows/image-doctor.yml b/.github/workflows/image-doctor.ymlindex 79cd724a8c..8ef3f264b4 100644--- a/.github/workflows/image-doctor.yml+++ b/.github/workflows/image-doctor.yml@@ -120,6 +120,9 @@ permissions:packages: readenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"# Cua programs and packages run here never send usage telemetry.CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.ymlindex ca61e35153..bab4a2e646 100644--- a/.github/workflows/release-please.yml+++ b/.github/workflows/release-please.yml@@ -49,6 +49,11 @@ concurrency:group: release-please-maincancel-in-progress: false+env:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"+jobs:release-please:runs-on: ubuntu-latestdiff --git a/.github/workflows/smoke-cua-driver-live.yml b/.github/workflows/smoke-cua-driver-live.ymlindex dba9d36970..92974a7059 100644--- a/.github/workflows/smoke-cua-driver-live.yml+++ b/.github/workflows/smoke-cua-driver-live.yml@@ -29,6 +29,9 @@ permissions:contents: readenv:+ CARGO_NET_RETRY: "10"+ CARGO_HTTP_TIMEOUT: "120"+ CARGO_HTTP_MULTIPLEXING: "false"CUA_TELEMETRY: "0"DO_NOT_TRACK: "1"CUA_DRIVER_RS_TELEMETRY_ENABLED: "false"