flatpak-builder: tell appstream compose to canonicalize URL #477
Workflow file for this run
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
name: CI | |
on: | |
push: | |
jobs: | |
smoketests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: .flatpak-builder | |
key: ${{ runner.os }}-flatpak-builder | |
- name: Install latest flatpak and flatpak-builder | |
run: | | |
sudo add-apt-repository ppa:flatpak/stable | |
sudo apt-get update | |
sudo apt-get install -y flatpak flatpak-builder | |
- name: Set up flathub remote | |
run: | | |
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo | |
# TODO: Remove this workaround once flatpak-builder v1.2.3 is available through the above PPA. | |
- name: Allow file:// clones with git>=2.38.1 | |
run: | | |
git config --global protocol.file.allow always | |
- name: Build org.flatpak.Builder | |
run: | | |
flatpak-builder --verbose --user --sandbox --force-clean --repo=repo \ | |
--install-deps-from=flathub --default-branch=localtest --ccache \ | |
--install builddir org.flatpak.Builder.json | |
- name: Check if org.flatpak.Builder launches | |
run: | | |
flatpak run org.flatpak.Builder//localtest --version | |
- name: Build org.freedesktop.appstream-glib with org.flatpak.Builder | |
run: | | |
git clone --depth=1 --branch master --single-branch https://github.com/flathub/org.freedesktop.appstream-glib | |
cd org.freedesktop.appstream-glib | |
dbus-run-session flatpak run org.flatpak.Builder//localtest --verbose --user --sandbox \ | |
--force-clean --install-deps-from=flathub --default-branch=localtest \ | |
--state-dir=../.flatpak-builder --ccache --disable-cache \ | |
--install builddir org.freedesktop.appstream-glib.json | |
- name: Check if org.freedesktop.appstream-glib launches | |
run: | | |
flatpak run org.freedesktop.appstream-glib//localtest vercmp 2 1 | |
- name: Build com.jetbrains.GoLand with org.flatpak.Builder | |
run: | | |
git clone --depth=1 --branch master --recursive --single-branch https://github.com/flathub/com.jetbrains.GoLand | |
cd com.jetbrains.GoLand | |
dbus-run-session flatpak run org.flatpak.Builder//localtest --verbose --user --sandbox \ | |
--force-clean --install-deps-from=flathub --default-branch=localtest \ | |
--state-dir=../.flatpak-builder --ccache --disable-cache --mirror-screenshots-url=https://domain.tld \ | |
--install builddir com.jetbrains.GoLand.yaml |