name: Desktop foundation on: push: # Main pushes exclude CLI release tags; feature branches use pull requests. branches: [main] paths: ['desktop-core/**', 'desktop/**', '.github/workflows/desktop.yml', 'rust-toolchain.toml', 'scripts/install-pinned-rustup.sh', 'Cargo.toml', 'Cargo.lock'] pull_request: paths: ['desktop-core/**', 'desktop/**', '.github/workflows/desktop.yml', 'rust-toolchain.toml', 'scripts/install-pinned-rustup.sh', 'Cargo.toml', 'Cargo.lock'] permissions: contents: read jobs: core: env: CARGO_TARGET_DIR: ${{ github.workspace }}/desktop-core/target strategy: fail-fast: false matrix: # Windows/macOS validation is deferred and unqualified. os: [ubuntu-latest] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - name: Install Linux build tools run: apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y ca-certificates build-essential python3 python-is-python3 - name: Install pinned Rust run: scripts/install-pinned-rustup.sh rustup toolchain install 1.99.0 --profile minimal --component rustfmt --component clippy - name: Format run: cargo fmt --manifest-path desktop-core/Cargo.toml --check - name: Tests run: cargo test --locked --manifest-path desktop-core/Cargo.toml - name: Lints run: cargo clippy --locked --manifest-path desktop-core/Cargo.toml --all-targets -- -D warnings - name: Hardware smoke (no inference) run: cargo run --locked --manifest-path desktop-core/Cargo.toml -- hardware - uses: actions/setup-dotnet@v4 with: dotnet-version: '10.0.x' - name: Restore desktop dependencies run: dotnet restore desktop/Strata.Desktop.csproj --locked-mode - name: Build desktop run: dotnet build desktop/Strata.Desktop.csproj --no-restore - name: Desktop gRPC node integration (headless, no inference) run: dotnet desktop/bin/Debug/net10.0/Strata.Desktop.dll --self-check - name: Desktop gRPC restart recovery (isolated node) run: python desktop/tests/reconnect.py - name: Desktop managed lifecycle (isolated synthetic worker) run: python desktop/tests/lifecycle.py - name: Real isolated SSH tunnel and gRPC recovery if: runner.os == 'macOS' run: python desktop/tests/ssh_tunnel.py - name: Real isolated SSH installation and rollback if: runner.os == 'macOS' run: python desktop/tests/remote_install.py