diff --git a/.github/workflows/desktop.yml b/.github/workflows/desktop.yml index 89e8c786..272fcfd0 100644 --- a/.github/workflows/desktop.yml +++ b/.github/workflows/desktop.yml @@ -1,9 +1,11 @@ name: Desktop foundation on: push: - paths: ['desktop-core/**', 'desktop/**', '.github/workflows/desktop.yml', 'rust-toolchain.toml'] + # 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'] + paths: ['desktop-core/**', 'desktop/**', '.github/workflows/desktop.yml', 'rust-toolchain.toml', 'scripts/install-pinned-rustup.sh', 'Cargo.toml', 'Cargo.lock'] permissions: contents: read jobs: @@ -11,10 +13,15 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + # 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