Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wayland CI fix v2 #168

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ jobs:
- name: Install Development Dependencies
run: ./deploy/dependencies/install_development_dependencies_ubuntu.sh
shell: bash
- name: Install xwayland-run
run: ./deploy/dependencies/install_xwayland-run.sh
shell: bash
- name: Lint with Linux checkpath
if: always()
run: ./tests/test_kernel_checkpath.sh
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build_PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ jobs:
- name: Install Development Dependencies
run: ./deploy/dependencies/install_development_dependencies_ubuntu.sh
shell: bash
- name: Install xwayland-run
run: ./deploy/dependencies/install_xwayland-run.sh
shell: bash
- name: Lint with Linux checkpath
if: always()
run: ./tests/test_kernel_checkpath.sh
Expand Down
3 changes: 2 additions & 1 deletion deploy/Dockerfile.arch
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN deploy/dependencies/install_dependencies_arch.sh

COPY ./deploy/dependencies ./deploy/dependencies
RUN deploy/dependencies/install_development_dependencies_arch.sh
RUN deploy/dependencies/install_xwayland-run.sh

COPY . /opt/LinuxLegionLaptop

Expand All @@ -35,4 +36,4 @@ RUN tests/test_python_cli.sh \
RUN deploy/python_install_installer_pkg.sh \
&& tests/test_python_cli_installed.sh \
&& tests/test_python_gui_installed.sh
#RUN tests/test_python_run_gui_root.sh
#RUN tests/test_python_run_gui_root.sh
1 change: 1 addition & 0 deletions deploy/Dockerfile.fedora
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ RUN deploy/dependencies/install_dependencies_fedora.sh

COPY ./deploy/dependencies ./deploy/dependencies
RUN deploy/dependencies/install_development_dependencies_fedora.sh
RUN deploy/dependencies/install_xwayland-run.sh

COPY . /opt/LinuxLegionLaptop

Expand Down
3 changes: 2 additions & 1 deletion deploy/Dockerfile.suse
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN deploy/dependencies/install_dependencies_suse.sh

COPY ./deploy/dependencies ./deploy/dependencies
RUN deploy/dependencies/install_development_dependencies_suse.sh
RUN deploy/dependencies/install_xwayland-run.sh

COPY . /opt/LinuxLegionLaptop

Expand All @@ -31,4 +32,4 @@ RUN tests/test_python_cli.sh \
RUN deploy/python_install_pip_pkg.sh \
&& tests/test_python_cli_installed.sh \
# && tests/test_python_gui_installed.sh
#RUN tests/test_python_run_gui_root.sh
#RUN tests/test_python_run_gui_root.sh
3 changes: 2 additions & 1 deletion deploy/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN deploy/dependencies/install_dependencies_ubuntu.sh

COPY ./deploy/dependencies ./deploy/dependencies
RUN deploy/dependencies/install_development_dependencies_ubuntu.sh
RUN deploy/dependencies/install_xwayland-run.sh

COPY . /opt/LinuxLegionLaptop

Expand All @@ -35,4 +36,4 @@ RUN tests/test_python_cli.sh \
RUN deploy/python_install_pip_pkg.sh \
&& tests/test_python_cli_installed.sh \
&& tests/test_python_gui_installed.sh
#RUN tests/test_python_run_gui_root.sh
#RUN tests/test_python_run_gui_root.sh
2 changes: 1 addition & 1 deletion deploy/dependencies/install_dependencies_arch.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
set -ex
sudo pacman -S --disable-download-timeout --noconfirm linux-headers base-devel lm_sensors git dmidecode python-pyqt6 python-yaml python-argcomplete polkit python-build python-installer python-wheel python-setuptools
sudo pacman -S --disable-download-timeout --noconfirm dkms openssl mokutil
sudo pacman -S --disable-download-timeout --noconfirm dkms openssl mokutil meson weston xwayland
2 changes: 1 addition & 1 deletion deploy/dependencies/install_dependencies_fedora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ set -ex
sudo dnf install -y kernel-headers kernel-devel dmidecode lm_sensors PyQt6 python3-yaml python3-pip python3-argcomplete python3-wheel polkit
sudo dnf groupinstall -y "Development Tools"
# sudo dnf group install -y "C Development Tools and Libraries"
sudo dnf install -y dkms openssl mokutil
sudo dnf install -y dkms openssl mokutil meson weston xwayland
2 changes: 1 addition & 1 deletion deploy/dependencies/install_dependencies_suse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ fi
set -e
# allow post-script install to fail (107) because it will try to update initramfs which is not possible inside container
sudo zypper --non-interactive install python3-argcomplete
sudo zypper --non-interactive install dkms openssl mokutil
sudo zypper --non-interactive install dkms openssl mokutil menos weston xwayland
2 changes: 1 addition & 1 deletion deploy/dependencies/install_dependencies_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
set -ex
sudo apt-get update
sudo apt-get install -y make gcc linux-headers-$(uname -r) build-essential git lm-sensors wget python3-yaml python3-venv python3-pip python3-wheel python3-argcomplete policykit-1
sudo apt-get install -y dkms openssl mokutil
sudo apt-get install -y dkms openssl mokutil meson weston xwayland
sudo pip install PyQt6
9 changes: 9 additions & 0 deletions deploy/dependencies/install_xwayland-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
cd /tmp
git clone https://gitlab.freedesktop.org/ofourdan/xwayland-run.git
cd xwayland-run
meson setup --prefix=/usr -Dcompositor=weston . build
sudo meson install -C build

#Fix wlheadless module not found
export PYTHONPATH="${PYTHONPATH}:/usr/local/lib/python3/dist-packages"
3 changes: 2 additions & 1 deletion deploy/package_testing/Dockerfile.suse
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN deploy/dependencies/install_dependencies_suse.sh

COPY ./deploy/dependencies ./deploy/dependencies
RUN deploy/dependencies/install_development_dependencies_suse.sh
RUN deploy/dependencies/install_xwayland-run.sh

COPY . /opt/LinuxLegionLaptop

Expand All @@ -31,4 +32,4 @@ RUN tests/test_python_cli.sh \
RUN deploy/python_install_pip_pkg.sh \
&& tests/test_python_cli_installed.sh \
# && tests/test_python_gui_installed.sh
#RUN tests/test_python_run_gui_root.sh
#RUN tests/test_python_run_gui_root.sh
3 changes: 2 additions & 1 deletion tests/test_python_gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ set -ex
DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

# Smoketest GUI
xvfb-run "${DIR}/../python/legion_linux/legion_linux/legion_gui.py" --automaticclose
#xvfb-run "${DIR}/../python/legion_linux/legion_linux/legion_gui.py" --automaticclose
xwayland-run :12 -- legion_gui --use_legion_cli_to_write --automaticclose
5 changes: 3 additions & 2 deletions tests/test_python_gui_installed.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
set -ex
# Smoketest GUI
xvfb-run "legion_gui" --automaticclose
echo "Done"
#xvfb-run "legion_gui" --automaticclose
xwayland-run :12 -- legion_gui --use_legion_cli_to_write --automaticclose
echo "Done"
Loading