Merge pull request #4: build and test on Linux only

The Windows CI job tested no supported configuration; the portable checks now run on Ubuntu only.
This commit is contained in:
Marco Allegretti 2026-10-09 10:56:22 +02:00 committed by GitHub
commit ce40916a98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 15 deletions

View file

@ -7,15 +7,9 @@ on:
pull_request:
jobs:
# Crates that must compile on every supported host platform.
cross-platform:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
# Crates that build without Wayland or other Linux system libraries.
portable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
@ -24,14 +18,14 @@ jobs:
components: rustfmt, clippy
- name: cargo fmt
run: cargo fmt --all --check
- name: cargo clippy (cross-platform crates)
- name: cargo clippy (portable crates)
run: >
cargo clippy --workspace
--exclude weft-compositor
--exclude weft-servo-shell
--exclude weft-app-shell
--all-targets -- -D warnings
- name: cargo test (cross-platform crates)
- name: cargo test (portable crates)
run: >
cargo test --workspace
--exclude weft-compositor

View file

@ -77,7 +77,7 @@ See `docs/building.md` for full instructions including Wasm component builds, Ni
Three jobs on every push and pull request:
- `cross-platform` — fmt, clippy, tests on Ubuntu and Windows
- `portable` — fmt, clippy and tests for the crates that need no Linux system libraries
- `linux-only` — clippy and tests for compositor and shell crates
- `servo-embed-linux` — `cargo check --features servo-embed` for both servo crates

View file

@ -2,7 +2,7 @@
## Prerequisites
Linux (x86_64 or aarch64). Building on Windows is supported for workspace validation only; runtime components require Linux kernel interfaces.
Linux (x86_64 or aarch64). WEFT OS is built and validated on Linux only; runtime components require Linux kernel interfaces.
System packages (openSUSE):
@ -114,6 +114,6 @@ See `infra/nixos/weft-packages.nix` for the package derivations. Its `outputHash
Three jobs run on every push to `main` and on pull requests:
- `cross-platform` — fmt, clippy, tests on Ubuntu and Windows (excludes Wayland crates)
- `portable` — fmt, clippy, tests for the crates that need no Linux system libraries (excludes Wayland crates)
- `linux-only` — clippy and tests for `weft-compositor`, `weft-servo-shell`, `weft-app-shell`
- `servo-embed-linux` — `cargo check --features servo-embed` for servo-shell and app-shell

View file

@ -22,7 +22,7 @@ The guest is the validation target for:
## Host versus target boundary
The Windows host is acceptable for editing, documentation, and workspace validation.
The Windows host is acceptable for editing and documentation. Builds and tests are validated on Linux only; CI does not build on Windows.
The Linux guest is authoritative for: