mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-26 17:03:09 +00:00
- Implement WeftCompositorState with all Wayland protocol globals: compositor, xdg-shell, layer-shell, shm, dmabuf, output, presentation, text-input, input-method, pointer-constraints, cursor-shape, seat. - Implement process_input_event covering keyboard, pointer (relative + absolute), axis, touch, and all gesture types (swipe, pinch, hold). - Implement Winit backend with damage-tracked rendering loop and frame callbacks. - Add DRM/KMS backend skeleton: libseat session, udev device discovery, calloop integration (rendering path deferred). - Add infra/systemd/weft-compositor.service (Type=notify). - Split CI into cross-platform and linux-only jobs. - Exclude weft-compositor from Windows check scripts.
57 lines
1.7 KiB
YAML
57 lines
1.7 KiB
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
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
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: 1.93.0
|
|
components: rustfmt, clippy
|
|
- name: cargo fmt
|
|
run: cargo fmt --all --check
|
|
- name: cargo clippy (cross-platform crates)
|
|
run: cargo clippy --workspace --exclude weft-compositor --all-targets -- -D warnings
|
|
- name: cargo test (cross-platform crates)
|
|
run: cargo test --workspace --exclude weft-compositor
|
|
|
|
# Wayland compositor and other Linux-only system crates.
|
|
# These require libwayland-server and other Linux kernel interfaces.
|
|
linux-only:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: 1.93.0
|
|
components: rustfmt, clippy
|
|
- name: install Linux system dependencies
|
|
run: |
|
|
sudo apt-get update -q
|
|
sudo apt-get install -y --no-install-recommends \
|
|
libwayland-dev \
|
|
libxkbcommon-dev \
|
|
libegl-dev \
|
|
libgles2-mesa-dev \
|
|
libinput-dev \
|
|
libseat-dev \
|
|
libudev-dev \
|
|
pkg-config
|
|
- name: cargo clippy (weft-compositor)
|
|
run: cargo clippy -p weft-compositor --all-targets -- -D warnings
|
|
- name: cargo test (weft-compositor)
|
|
run: cargo test -p weft-compositor
|