-
-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Muhammad Murad <[email protected]>
- Loading branch information
1 parent
fbedd3f
commit 3ae2bcb
Showing
22 changed files
with
798 additions
and
393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -235,8 +235,9 @@ jobs: | |
- "macOS-x86_64" | ||
- "macOS-arm64" | ||
- "windows" | ||
- "linux-x11" | ||
- "linux-wayland" | ||
- "linux-x11-gtk3" | ||
- "linux-wayland-gtk3" | ||
- "linux-wayland-gtk4" | ||
- "android" | ||
- "iOS" | ||
- "textual-linux" | ||
|
@@ -261,7 +262,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-x11" | ||
- backend: "linux-x11-gtk3" | ||
platform: "linux" | ||
runs-on: "ubuntu-24.04" | ||
# The package list should be the same as in unix-prerequisites.rst, and the BeeWare | ||
|
@@ -290,7 +291,7 @@ jobs: | |
setup-python: false # Use the system Python packages | ||
app-user-data-path: "$HOME/.local/share/testbed" | ||
|
||
- backend: "linux-wayland" | ||
- backend: "linux-wayland-gtk3" | ||
platform: "linux" | ||
runs-on: "ubuntu-24.04" | ||
# The package list should be the same as in unix-prerequisites.rst, and the BeeWare | ||
|
@@ -309,14 +310,45 @@ jobs: | |
# Start Window Manager | ||
echo "Start window manager..." | ||
# mutter is being run inside a virtual X server because mutter's headless | ||
# mode is not compatible with Gtk | ||
# mode does not provide a Gdk.Display | ||
DISPLAY=:99 MUTTER_DEBUG_DUMMY_MODE_SPECS=2048x1536 \ | ||
mutter --nested --wayland --no-x11 --wayland-display toga & | ||
sleep 1 | ||
briefcase-run-prefix: "WAYLAND_DISPLAY=toga" | ||
setup-python: false # Use the system Python packages | ||
app-user-data-path: "$HOME/.local/share/testbed" | ||
|
||
- backend: "linux-wayland-gtk4" | ||
platform: "linux" | ||
runs-on: "ubuntu-24.04" | ||
env: | ||
XDG_RUNTIME_DIR: "/tmp" | ||
# The package list should be the same as in unix-prerequisites.rst, and the BeeWare | ||
# tutorial, plus mutter to provide a window manager. | ||
pre-command: | | ||
sudo apt update -y | ||
sudo apt install -y --no-install-recommends \ | ||
mutter pkg-config python3-dev libgirepository1.0-dev libcairo2-dev \ | ||
gir1.2-webkit2-4.1 gir1.2-xapp-1.0 gir1.2-geoclue-2.0 gir1.2-flatpak-1.0 \ | ||
gir1.2-gtk-4.0 | ||
# Start Virtual X Server | ||
echo "Start X server..." | ||
Xvfb :99 -screen 0 2048x1536x24 & | ||
sleep 1 | ||
# Start Window Manager | ||
echo "Start window manager..." | ||
# mutter is being run inside a virtual X server because mutter's headless | ||
# mode does not provide a Gdk.Display | ||
DISPLAY=:99 MUTTER_DEBUG_DUMMY_MODE_SPECS=2048x1536 \ | ||
mutter --nested --wayland --no-x11 --wayland-display toga & | ||
sleep 1 | ||
briefcase-run-prefix: "WAYLAND_DISPLAY=toga TOGA_GTK=4" | ||
briefcase-test-args: -k 'test_window or test_desktop or test_app and not test_app_icon' | ||
setup-python: false # Use the system Python packages | ||
app-user-data-path: "$HOME/.local/share/testbed" | ||
|
||
- backend: "textual-linux" | ||
platform: "linux" | ||
runs-on: "ubuntu-latest" | ||
|
@@ -397,7 +429,8 @@ jobs: | |
timeout-minutes: 15 | ||
run: | | ||
${{ matrix.briefcase-run-prefix }} \ | ||
briefcase run ${{ matrix.platform }} --log --test ${{ matrix.briefcase-run-args }} -- --ci | ||
briefcase run ${{ matrix.platform }} --log --test ${{ matrix.briefcase-run-args }} \ | ||
-- ${{ matrix.briefcase-test-args }} --ci | ||
- name: Upload Logs | ||
uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Toga GTK now supports GTK4 for BeeWare Tutorial 1 by setting `TOGA_GTK=4`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.