mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-11-22 08:13:59 +00:00
ci: build and test on Linux only
WEFT OS targets Linux and systemd. The Windows runner only compiled and tested the crates without Linux system libraries, which says nothing about a supported configuration, and was the slowest job in every run. The job is now `portable` on Ubuntu, matching the verification profile of the same name. The building guide, README and development environment notes now state that builds are validated on Linux only.
This commit is contained in:
parent
b99cc73a47
commit
29a7f6f508
4 changed files with 9 additions and 15 deletions
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
||||
|
|
@ -92,6 +92,6 @@ See `infra/nixos/weft-packages.nix` for the package derivations. The `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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue