Skip to content

Commit 07f1fac

Browse files
authored
ci: configure input device rules in CI workflow
Add udev rules and commands for input device setup in CI.
1 parent 603eedc commit 07f1fac

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ jobs:
4141
ci:
4242
uses: BlueLua/.github/.github/workflows/ci.yml@main
4343
with:
44+
run: |
45+
echo 'KERNEL=="event*", SUBSYSTEM=="input", MODE="0666"' | sudo tee /etc/udev/rules.d/99-evdev-test.rules
46+
sudo udevadm control --reload-rules
47+
sudo modprobe uinput || true
48+
sudo udevadm trigger --subsystem-match=input || true
49+
test -e /dev/uinput
50+
sudo chmod 666 /dev/uinput
4451
# Forward OS selections if triggered manually, otherwise use defaults for push/pr triggers
4552
linux: ${{ (github.event_name == 'workflow_dispatch' && inputs.linux == true) || (github.event_name != 'workflow_dispatch' && true) }}
4653
macos: ${{ (github.event_name == 'workflow_dispatch' && inputs.macos == true) || (github.event_name != 'workflow_dispatch' && false) }}

0 commit comments

Comments
 (0)