mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-11-22 08:13:59 +00:00
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:
commit
ce40916a98
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:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Crates that must compile on every supported host platform.
|
# Crates that build without Wayland or other Linux system libraries.
|
||||||
cross-platform:
|
portable:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os:
|
|
||||||
- ubuntu-latest
|
|
||||||
- windows-latest
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
@ -24,14 +18,14 @@ jobs:
|
||||||
components: rustfmt, clippy
|
components: rustfmt, clippy
|
||||||
- name: cargo fmt
|
- name: cargo fmt
|
||||||
run: cargo fmt --all --check
|
run: cargo fmt --all --check
|
||||||
- name: cargo clippy (cross-platform crates)
|
- name: cargo clippy (portable crates)
|
||||||
run: >
|
run: >
|
||||||
cargo clippy --workspace
|
cargo clippy --workspace
|
||||||
--exclude weft-compositor
|
--exclude weft-compositor
|
||||||
--exclude weft-servo-shell
|
--exclude weft-servo-shell
|
||||||
--exclude weft-app-shell
|
--exclude weft-app-shell
|
||||||
--all-targets -- -D warnings
|
--all-targets -- -D warnings
|
||||||
- name: cargo test (cross-platform crates)
|
- name: cargo test (portable crates)
|
||||||
run: >
|
run: >
|
||||||
cargo test --workspace
|
cargo test --workspace
|
||||||
--exclude weft-compositor
|
--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:
|
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
|
- `linux-only` — clippy and tests for compositor and shell crates
|
||||||
- `servo-embed-linux` — `cargo check --features servo-embed` for both servo crates
|
- `servo-embed-linux` — `cargo check --features servo-embed` for both servo crates
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
## Prerequisites
|
## 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):
|
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:
|
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`
|
- `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
|
- `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
|
## 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:
|
The Linux guest is authoritative for:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue