Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
56 lines
2.8 KiB
YAML
56 lines
2.8 KiB
YAML
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
|
|
# --no-deps: the path dependencies (leleka-model-format, leleka-cuda-driver, leleka-runtime) carry reported Clippy debt of their own (docs/ci-audit.md)
|
|
run: cargo clippy --locked --manifest-path desktop-core/Cargo.toml --all-targets --no-deps -- -D warnings
|
|
- name: Hardware smoke (no inference)
|
|
# desktop-core ships six binaries and no default-run: name the one this smoke test runs
|
|
run: cargo run --locked --manifest-path desktop-core/Cargo.toml --bin strata-desktop -- 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
|