mirror of
https://github.com/VallierDev/uu-remote-linux.git
synced 2026-11-16 16:50:41 +01:00
* fix(portal): map scaled GNOME input through EIS regions Keep unsupported portals on legacy input and leave capture/uinput independent of EIS. Cache logical geometry without the native handle lock and reject geometry changes during recovery. Add native capability, handshake, geometry and lifecycle regression coverage with sanitizer checks; preserve existing non-portal paths. Refs #23. * fix(portal): keep version 4 capture settings in pixel coordinates Keep native, selectable and current screen rectangles in pixels with DPR 1 so legacy setting requests cannot implicitly downscale a scaled desktop. Leave Portal and EIS coordinate mapping local and unchanged. Add inventory/request/ack/sync roundtrip regression coverage, including repeated settings changes and restoring native output. Refs #23.
61 lines
2.2 KiB
YAML
61 lines
2.2 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install build dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y build-essential pkg-config \
|
|
libx11-dev libxext-dev libxtst-dev libxfixes-dev libgtk-3-dev
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- uses: Swatinem/rust-cache@v2
|
|
- run: cargo test --locked
|
|
|
|
test-wayland:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install build dependencies (X11 + Wayland + portal)
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y build-essential pkg-config \
|
|
libx11-dev libxext-dev libxtst-dev libxfixes-dev libgtk-3-dev \
|
|
libwayland-dev libxkbcommon-dev libglib2.0-dev libpipewire-0.3-dev libei-dev libeis-dev
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- uses: Swatinem/rust-cache@v2
|
|
- run: cargo test --locked --features wayland,portal
|
|
- name: Native portal and EIS regression tests (ASan/UBSan)
|
|
env:
|
|
ASAN_OPTIONS: detect_leaks=1
|
|
UBSAN_OPTIONS: halt_on_error=1
|
|
run: |
|
|
for source in tests/portal_engine.c tests/portal_input.c tests/portal_eis.c; do
|
|
target="/tmp/$(basename "$source" .c)"
|
|
cc -O1 -g -fsanitize=address,undefined -fno-omit-frame-pointer \
|
|
-Wall -Wextra -Wno-unused-parameter "$source" -o "$target" \
|
|
$(pkg-config --cflags --libs gio-2.0 gio-unix-2.0 libpipewire-0.3 libei-1.0 libeis-1.0) -lpthread -lm
|
|
"$target"
|
|
done
|
|
|
|
test-inproc:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install build dependencies (X11 + FFmpeg 6 for the inproc-av feature)
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y build-essential pkg-config \
|
|
libx11-dev libxext-dev libxtst-dev libxfixes-dev libgtk-3-dev \
|
|
libavcodec-dev libavformat-dev libavdevice-dev libswscale-dev libclang-dev
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- uses: Swatinem/rust-cache@v2
|
|
- run: cargo test --locked --features inproc-av
|