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
build(cua-driver): compile platform-linux off Linux (#4095)
Francesco Bonacci3e9a105e66b1
diff --git a/.github/workflows/ci-swift-linker.yml b/.github/workflows/ci-swift-linker.ymlindex f658a7c916..2b5c6665ed 100644--- a/.github/workflows/ci-swift-linker.yml+++ b/.github/workflows/ci-swift-linker.yml@@ -43,3 +43,19 @@ jobs:${{ runner.temp }}/cua-swift-linker.*/environment.txt${{ runner.temp }}/cua-swift-linker.*/build.log${{ runner.temp }}/cua-swift-linker.*/duplicate-symbols.txt++ platform-linux-off-linux:+ name: platform-linux compiles on macOS+ runs-on: macos-latest+ timeout-minutes: 20+ steps:+ - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5+ - uses: dtolnay/rust-toolchain@4716b85f2fac3e324e64fa2810f6b5c3905760a5 # 1.97.1+ - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2+ with:+ workspaces: "libs/cua-driver/rust -> target"+ key: platform-linux-off-linux+ save-if: ${{ github.ref == 'refs/heads/main' }}+ - name: Check platform-linux and its tests off Linux+ working-directory: libs/cua-driver/rust+ run: cargo check --locked -p platform-linux --all-targetsdiff --git a/libs/cua-driver/rust/crates/platform-linux/src/overlay.rs b/libs/cua-driver/rust/crates/platform-linux/src/overlay.rsindex 59903f1754..1b6f169fe1 100644--- a/libs/cua-driver/rust/crates/platform-linux/src/overlay.rs+++ b/libs/cua-driver/rust/crates/platform-linux/src/overlay.rs@@ -610,7 +610,7 @@ pub async fn animate_cursor_to_for(key: CursorKey, x: f64, y: f64) {/// at a time, every later tool call — open indefinitely. Sized above the/// longest legal glide (`glide_duration_ms` ≤ 5000; speed-based glides cross/// a 4K diagonal in ≈5 s at 900 px/s).-const ARRIVAL_WAIT_CAP: Duration = Duration::from_millis(5_500);+const ARRIVAL_WAIT_CAP: std::time::Duration = std::time::Duration::from_millis(5_500);/// Latched once an arrival wait expired; cleared by the next real arrival.static ARRIVAL_DEGRADED: std::sync::atomic::AtomicBool = std::sync::atomic::AtomicBool::new(false);diff --git a/libs/cua-driver/rust/crates/platform-linux/tests/kwin_helper_contract.rs b/libs/cua-driver/rust/crates/platform-linux/tests/kwin_helper_contract.rsindex bc9192c769..6e31b17de6 100644--- a/libs/cua-driver/rust/crates/platform-linux/tests/kwin_helper_contract.rs+++ b/libs/cua-driver/rust/crates/platform-linux/tests/kwin_helper_contract.rs@@ -1,3 +1,5 @@+#![cfg(target_os = "linux")]+use platform_linux::wayland::kwin_helper::{available, correlate_atspi_window, parse_snapshot, require_active_target, with_focused_window,CorrelationError,