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: 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.yml
new file mode 100644
index 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" --version
diff --git a/.github/workflows/authorized-live-jev-use-demo.yml b/.github/workflows/authorized-live-jev-use-demo.yml
index 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: false
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"
diff --git a/.github/workflows/authorized-live-jev-use.yml b/.github/workflows/authorized-live-jev-use.yml
index 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: read
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"
diff --git a/.github/workflows/bench-streaming.yml b/.github/workflows/bench-streaming.yml
index 9ba3d4bd98..5e1b36d190 100644
--- a/.github/workflows/bench-streaming.yml
+++ b/.github/workflows/bench-streaming.yml
@@ -41,6 +41,9 @@ concurrency:
cancel-in-progress: false
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"
diff --git a/.github/workflows/cd-bench-images.yml b/.github/workflows/cd-bench-images.yml
index ed7aea2481..f7f7e57490 100644
--- a/.github/workflows/cd-bench-images.yml
+++ b/.github/workflows/cd-bench-images.yml
@@ -79,6 +79,9 @@ permissions:
contents: read
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"
diff --git a/.github/workflows/cd-cua-driver-docs.yml b/.github/workflows/cd-cua-driver-docs.yml
index 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: write
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"
diff --git a/.github/workflows/cd-cua-perception-review-supplied-inputs.yml b/.github/workflows/cd-cua-perception-review-supplied-inputs.yml
index 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: false
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"
diff --git a/.github/workflows/cd-cua-perception.yml b/.github/workflows/cd-cua-perception.yml
index 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.yml
index 3a6ad41845..f501e06d54 100644
--- a/.github/workflows/cd-cua-sdk.yml
+++ b/.github/workflows/cd-cua-sdk.yml
@@ -53,6 +53,9 @@ permissions:
contents: read
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"
@@ -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@v4
with:
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-sim
diff --git a/.github/workflows/cd-cua-spaces.yml b/.github/workflows/cd-cua-spaces.yml
index 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-spaces
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"
@@ -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 cargo
uses: actions/cache@v4
@@ -586,10 +586,7 @@ jobs:
rustup target add wasm32-unknown-unknown
cargo 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 dependencies
if: 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 dependencies
if: 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 dependencies
run: 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.yml
index 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: false
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"
@@ -154,10 +157,7 @@ jobs:
- name: Install build dependencies
run: 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 # stable
with:
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 # stable
with:
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 # stable
with:
targets: x86_64-pc-windows-msvc
diff --git a/.github/workflows/cd-image-linux.yml b/.github/workflows/cd-image-linux.yml
index 3ffd246896..7218553725 100644
--- a/.github/workflows/cd-image-linux.yml
+++ b/.github/workflows/cd-image-linux.yml
@@ -126,6 +126,9 @@ permissions:
contents: read
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"
diff --git a/.github/workflows/cd-image-macos.yml b/.github/workflows/cd-image-macos.yml
index 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-macos
cancel-in-progress: false
+env:
+ CARGO_NET_RETRY: "10"
+ CARGO_HTTP_TIMEOUT: "120"
+ CARGO_HTTP_MULTIPLEXING: "false"
+
jobs:
plan:
runs-on: ubuntu-latest
diff --git a/.github/workflows/cd-image-omarchy.yml b/.github/workflows/cd-image-omarchy.yml
index 2c4c6dcfe7..b2db449931 100644
--- a/.github/workflows/cd-image-omarchy.yml
+++ b/.github/workflows/cd-image-omarchy.yml
@@ -85,6 +85,9 @@ permissions:
contents: read
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"
diff --git a/.github/workflows/cd-image-windows.yml b/.github/workflows/cd-image-windows.yml
index 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: false
env:
+ CARGO_NET_RETRY: "10"
+ CARGO_HTTP_TIMEOUT: "120"
+ CARGO_HTTP_MULTIPLEXING: "false"
CARGO_TERM_COLOR: always
CARGO_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 # stable
with:
targets: x86_64-pc-windows-msvc
diff --git a/.github/workflows/cd-images-spacesd-release.yml b/.github/workflows/cd-images-spacesd-release.yml
index 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-release
cancel-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: main
token: ${{ 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 Rust
run: |
scripts/images/install-release-tools.sh --push-only
diff --git a/.github/workflows/cd-rust-cua-driver.yml b/.github/workflows/cd-rust-cua-driver.yml
index 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: false
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"
diff --git a/.github/workflows/ci-check-docs.yml b/.github/workflows/ci-check-docs.yml
index 83a02d58ac..7528e1aed3 100644
--- a/.github/workflows/ci-check-docs.yml
+++ b/.github/workflows/ci-check-docs.yml
@@ -45,6 +45,9 @@ permissions:
contents: read
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"
@@ -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.yml
index 0d5effeeb7..cf4c0701e0 100644
--- a/.github/workflows/ci-cua-byoc.yml
+++ b/.github/workflows/ci-cua-byoc.yml
@@ -22,6 +22,9 @@ permissions:
contents: read
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"
@@ -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, rustfmt
diff --git a/.github/workflows/ci-cua-contrib.yml b/.github/workflows/ci-cua-contrib.yml
index 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: true
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"
@@ -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 # v2
with:
diff --git a/.github/workflows/ci-cua-driver-contract-clients.yml b/.github/workflows/ci-cua-driver-contract-clients.yml
index 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: true
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"
diff --git a/.github/workflows/ci-cua-driver-quick.yml b/.github/workflows/ci-cua-driver-quick.yml
index 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: true
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"
diff --git a/.github/workflows/ci-cua-driver-valgrind.yml b/.github/workflows/ci-cua-driver-valgrind.yml
index 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: true
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"
diff --git a/.github/workflows/ci-cua-perception-release.yml b/.github/workflows/ci-cua-perception-release.yml
index 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: read
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"
@@ -78,6 +81,9 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
persist-credentials: false
+ - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2
+ with:
+ workspaces: libs/cua-driver/rust
- name: Compile and test Cua Perception
working-directory: libs/cua-driver/rust
run: cargo test --locked -p cua-perception
diff --git a/.github/workflows/ci-cua-proto.yml b/.github/workflows/ci-cua-proto.yml
index 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: true
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"
@@ -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 toolchain
uses: dtolnay/[email protected]
with:
diff --git a/.github/workflows/ci-cua-s1-weights.yml b/.github/workflows/ci-cua-s1-weights.yml
index 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.yml
index 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 toolchain
uses: 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 # v2
with:
@@ -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 # v2
with:
@@ -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 # v2
with:
@@ -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 # v2
with:
diff --git a/.github/workflows/ci-cua-spaces-macos.yml b/.github/workflows/ci-cua-spaces-macos.yml
index 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 # v2
with:
- version: "29.x"
- repo-token: ${{ secrets.GITHUB_TOKEN }}
+ workspaces: libs/cua
+ - name: Install protoc
+ uses: ./.github/actions/setup-protoc
- name: FFI mirrors match the core
run: python3 scripts/generate-app-core-ffi.py --check
- name: No UI keeps its own icon cache
@@ -81,11 +86,11 @@ jobs:
working-directory: libs/cua
run: 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 library
working-directory: libs/cua
diff --git a/.github/workflows/ci-cua-spaces-web.yml b/.github/workflows/ci-cua-spaces-web.yml
index 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: true
env:
+ 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 install
rustup target add wasm32-unknown-unknown
cargo 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 install
rustup target add wasm32-unknown-unknown
cargo 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
diff --git a/.github/workflows/ci-cua-spaces.yml b/.github/workflows/ci-cua-spaces.yml
index 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-spaces
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"
@@ -55,6 +58,9 @@ jobs:
rustup show active-toolchain || rustup toolchain install
rustup target add wasm32-unknown-unknown
cargo 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@v4
with:
@@ -105,10 +111,7 @@ jobs:
rustup target add wasm32-unknown-unknown
cargo 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 dependencies
if: runner.os == 'Linux'
run: |
diff --git a/.github/workflows/ci-cua-spacesd-html5.yml b/.github/workflows/ci-cua-spacesd-html5.yml
index 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: true
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"
@@ -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 standalone
diff --git a/.github/workflows/ci-cua-spacesd.yml b/.github/workflows/ci-cua-spacesd.yml
index 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: true
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"
@@ -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@stable
with:
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 # v2
with:
diff --git a/.github/workflows/ci-driver-mcp-candidate.yml b/.github/workflows/ci-driver-mcp-candidate.yml
index 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.yml
index d73cc525ce..d7bfefaaf6 100644
--- a/.github/workflows/ci-image-api.yml
+++ b/.github/workflows/ci-image-api.yml
@@ -35,6 +35,9 @@ permissions:
contents: read
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"
@@ -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 toolchain
uses: dtolnay/[email protected]
diff --git a/.github/workflows/ci-infinite-canvas-swift.yml b/.github/workflows/ci-infinite-canvas-swift.yml
index 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: true
env:
+ CARGO_NET_RETRY: "10"
+ CARGO_HTTP_TIMEOUT: "120"
+ CARGO_HTTP_MULTIPLEXING: "false"
CARGO_TERM_COLOR: always
CARGO_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 toolchain
uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2
diff --git a/.github/workflows/ci-jev-use.yml b/.github/workflows/ci-jev-use.yml
index 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-use
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"
@@ -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@v5
with:
python-version: "3.12"
diff --git a/.github/workflows/ci-lockfiles.yml b/.github/workflows/ci-lockfiles.yml
index 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 manifests
diff --git a/.github/workflows/ci-openkoalabot-example-samples.yml b/.github/workflows/ci-openkoalabot-example-samples.yml
index 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: true
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"
@@ -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 toolchain
uses: 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 toolchain
uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2
diff --git a/.github/workflows/ci-openkoalabot-example-tauri.yml b/.github/workflows/ci-openkoalabot-example-tauri.yml
index 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-tauri
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"
@@ -57,10 +60,7 @@ jobs:
working-directory: samples/openkoalabot-example-tauri/src-tauri
run: 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 update
diff --git a/.github/workflows/ci-platform-linux-portability.yml b/.github/workflows/ci-platform-linux-portability.yml
index 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 macOS
diff --git a/.github/workflows/ci-py-cli-wif-token.yml b/.github/workflows/ci-py-cli-wif-token.yml
index 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: write
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"
@@ -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 # v2
with:
diff --git a/.github/workflows/ci-rust-format.yml b/.github/workflows/ci-rust-format.yml
index 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.yml
index 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: true
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"
diff --git a/.github/workflows/ci-rust-macos.yml b/.github/workflows/ci-rust-macos.yml
index 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 unit
diff --git a/.github/workflows/ci-rust-windows.yml b/.github/workflows/ci-rust-windows.yml
index 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: true
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"
diff --git a/.github/workflows/ci-swift-linker.yml b/.github/workflows/ci-swift-linker.yml
index 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: true
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"
diff --git a/.github/workflows/ci-test-python.yml b/.github/workflows/ci-test-python.yml
index 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 toolchain
uses: dtolnay/[email protected]
diff --git a/.github/workflows/clawhub-cua-driver.yml b/.github/workflows/clawhub-cua-driver.yml
index 95901d6805..f50a31da02 100644
--- a/.github/workflows/clawhub-cua-driver.yml
+++ b/.github/workflows/clawhub-cua-driver.yml
@@ -29,6 +29,9 @@ permissions:
id-token: write
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"
diff --git a/.github/workflows/e2e-cua-sdk.yml b/.github/workflows/e2e-cua-sdk.yml
index 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: true
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"
@@ -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 toolchain
uses: 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 toolchain
uses: dtolnay/[email protected]
with:
diff --git a/.github/workflows/e2e-rust-linux-wayland.yml b/.github/workflows/e2e-rust-linux-wayland.yml
index 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: read
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"
diff --git a/.github/workflows/e2e-rust-linux.yml b/.github/workflows/e2e-rust-linux.yml
index 1c5b8baf10..5803650688 100644
--- a/.github/workflows/e2e-rust-linux.yml
+++ b/.github/workflows/e2e-rust-linux.yml
@@ -46,6 +46,9 @@ permissions:
actions: read
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"
diff --git a/.github/workflows/e2e-rust-standalone-browsers.yml b/.github/workflows/e2e-rust-standalone-browsers.yml
index 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: read
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"
@@ -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 tools
if: runner.os == 'Windows'
shell: pwsh
diff --git a/.github/workflows/e2e-rust-windows.yml b/.github/workflows/e2e-rust-windows.yml
index fa28469212..df0a5bfcd9 100644
--- a/.github/workflows/e2e-rust-windows.yml
+++ b/.github/workflows/e2e-rust-windows.yml
@@ -46,6 +46,9 @@ permissions:
actions: read
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"
diff --git a/.github/workflows/fuzz-cua-driver.yml b/.github/workflows/fuzz-cua-driver.yml
index 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.yml
index 79cd724a8c..8ef3f264b4 100644
--- a/.github/workflows/image-doctor.yml
+++ b/.github/workflows/image-doctor.yml
@@ -120,6 +120,9 @@ permissions:
packages: read
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"
diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml
index ca61e35153..bab4a2e646 100644
--- a/.github/workflows/release-please.yml
+++ b/.github/workflows/release-please.yml
@@ -49,6 +49,11 @@ concurrency:
group: release-please-main
cancel-in-progress: false
+env:
+ CARGO_NET_RETRY: "10"
+ CARGO_HTTP_TIMEOUT: "120"
+ CARGO_HTTP_MULTIPLEXING: "false"
+
jobs:
release-please:
runs-on: ubuntu-latest
diff --git a/.github/workflows/smoke-cua-driver-live.yml b/.github/workflows/smoke-cua-driver-live.yml
index 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: read
env:
+ 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"