Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(cua-driver): ship the Hyprland plugin keyboard sources in release kits and test them in CI (#4310)

Francesco Bonacci0e7ad50a5796
diff --git a/.github/workflows/ci-hyprland-plugin.yml b/.github/workflows/ci-hyprland-plugin.yml
index 222e1c0c0e..a7dd8feb87 100644
--- a/.github/workflows/ci-hyprland-plugin.yml
+++ b/.github/workflows/ci-hyprland-plugin.yml
@@ -24,6 +24,10 @@ jobs:
name: Linux protocol, transport, and mocked plugin API
runs-on: ubuntu-24.04
timeout-minutes: 15
+ env:
+ # The keyboard layout and foreground modifier tests compile real XKB
+ # keymaps. Fail instead of skipping them if xkbcommon goes missing.
+ CUA_HYPRLAND_REQUIRE_XKBCOMMON: "1"
defaults:
run:
working-directory: libs/cua-driver/hyprland-plugin
@@ -34,7 +38,7 @@ jobs:
- name: Install portable test toolchain
run: |
sudo apt-get update
- sudo apt-get install -y --no-install-recommends clang-18 ninja-build python3-venv
+ sudo apt-get install -y --no-install-recommends clang-18 ninja-build python3-venv libxkbcommon-dev xkb-data
python3 -m venv "$RUNNER_TEMP/hyprland-plugin-tools"
"$RUNNER_TEMP/hyprland-plugin-tools/bin/python" -m pip install cmake==3.31.6
echo "$RUNNER_TEMP/hyprland-plugin-tools/bin" >> "$GITHUB_PATH"
diff --git a/libs/cua-driver/hyprland-plugin/packaging/release/bundle.py b/libs/cua-driver/hyprland-plugin/packaging/release/bundle.py
index fd29e7e243..3eee1c2a80 100644
--- a/libs/cua-driver/hyprland-plugin/packaging/release/bundle.py
+++ b/libs/cua-driver/hyprland-plugin/packaging/release/bundle.py
@@ -31,6 +31,7 @@ src/input_client_deadline.hpp
src/input_experiment.cpp
src/input_experiment.hpp
src/input_grant.hpp
+src/keymap_equivalence.hpp
src/owned_socket_path.hpp
src/passive_pointer_target.hpp
src/plugin.cpp
@@ -46,8 +47,11 @@ tests/desktop_fault_policy_fixture.cpp
tests/desktop_fault_policy_test.py
tests/drag_geometry_test.cpp
tests/foreground_route_test.cpp
+tests/foreground_modifiers_test.py
tests/input_grant_test.cpp
tests/input_client_deadline_test.cpp
+tests/keyboard_layout_test.cpp
+tests/keymap_equivalence_test.cpp
tests/mock-hyprland/mock.hpp
tests/mock-hyprland/src/config/values/types/BoolValue.hpp
tests/mock-hyprland/src/plugins/PluginAPI.hpp