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

ci: add flatpak test #334

Closed
wants to merge 13 commits into from
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt-get install meson scdoc python3-hatchling python3-build python3-installer python3-filelock shellcheck bubblewrap cargo
sudo apt-get install meson scdoc python3-hatchling python3-build python3-installer python3-filelock shellcheck bubblewrap cargo flatpak-builder
python3 -m pip install --upgrade pip
pip install uv
- name: Initialize submodules
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: flatpak

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt-get install meson scdoc python3-hatchling python3-build python3-installer python3-filelock shellcheck bubblewrap cargo flatpak-builder
python3 -m pip install --upgrade pip
pip install uv
- name: Initialize submodules
run: |
git submodule update --init --recursive
- name: Make user install
run: |
./configure.sh --user-install
make install
- name: Run shellcheck
run: |
shellcheck tests/*.sh
- name: Test Flatpak
run: |
cd packaging/flatpak
git config --global protocol.file.allow always
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak-builder --force-clean --user --install-deps-from=flathub --repo=umu-repo --install umu-launcher org.openwinecomponents.umu.umu-launcher.yml
mkdir -p "$HOME"/.var/app/org.openwinecomponents.umu.umu-launcher
cp -a "$HOME"/.local/bin/umu-run "$HOME"/.var/app/org.openwinecomponents.umu.umu-launcher
GAMEID=umu-0 UMU_LOG=1 flatpak -v run --command='umu-run wineboot -u' --devel --filesystem=$(pwd) org.openwinecomponents.umu.umu-launcher
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "subprojects/python-xlib"]
path = subprojects/python-xlib
url = https://github.com/python-xlib/python-xlib.git
1 change: 1 addition & 0 deletions subprojects/python-xlib
Submodule python-xlib added at 4e8bbf
Loading