Skip to content

Commit

Permalink
Run testbed with Wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartin16 committed Jun 19, 2024
1 parent f90ab92 commit 0ebb9ab
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ jobs:
strategy:
fail-fast: false
matrix:
backend: [ "macOS-x86_64", "macOS-arm64", "windows", "linux", "android", "iOS" ]
backend: [ "macOS-x86_64", "macOS-arm64", "windows", "linux-x11", "linux-wayland","android", "iOS" ]
include:
- pre-command: ""
briefcase-run-prefix: ""
Expand All @@ -208,7 +208,7 @@ jobs:
# We use a fixed Ubuntu version rather than `-latest` because at some point,
# `-latest` will be updated, but it will be a soft changeover, which would cause
# the system Python version to become inconsistent from run to run.
- backend: "linux"
- backend: "linux-x11"
platform: "linux"
runs-on: "ubuntu-22.04"
# The package list should be the same as in tutorial-0.rst, and the BeeWare
Expand Down Expand Up @@ -236,6 +236,35 @@ jobs:
setup-python: false # Use the system Python packages
app-user-data-path: "$HOME/.local/share/testbed"

- backend: "linux-wayland"
platform: "linux"
runs-on: "ubuntu-24.04"
# The package list should be the same as in tutorial-0.rst, and the BeeWare
# tutorial, plus mutter to provide a window manager, and libjpeg-dev for Pillow.
pre-command: |
sudo apt update -y
sudo apt install -y --no-install-recommends \
mutter libjpeg-dev \
pkg-config python3-dev libgirepository1.0-dev libcairo2-dev gir1.2-webkit2-4.1
# Start Virtual X server
echo "Start X server..."
Xvfb :99 -screen 0 2048x1536x24 &
sleep 1
# Start Window manager
echo "Start window manager..."
DISPLAY=:99 MUTTER_DEBUG_DUMMY_MODE_SPECS=2048x1536 \
mutter --nested --wayland --no-x11 --wayland-display toga &
sleep 1
# Bypass guardrails for installing over system packages
export PIP_BREAK_SYSTEM_PACKAGES=1
export PIP_IGNORE_INSTALLED=1
briefcase-run-prefix: "WAYLAND_DISPLAY=toga"
setup-python: false # Use the system Python packages
app-user-data-path: "$HOME/.local/share/testbed"

- backend: "windows"
platform: "windows"
runs-on: "windows-latest"
Expand Down
1 change: 1 addition & 0 deletions changes/2668.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add Wayland to the matrix for testbed CI testing.

0 comments on commit 0ebb9ab

Please sign in to comment.