validate appdata file

This commit is contained in:
Martin Marmsoler 2022-05-29 09:01:08 +02:00
parent 229b9d0b18
commit 7f738d93a9

View File

@ -121,6 +121,7 @@ jobs:
ninja_platform: linux
qt_platform: linux
openssl_arch: linux-x86_64
cmake_flags: "-DGENERATE_APPDATA=ON"
cmake_env: {}
- name: mac
@ -269,6 +270,15 @@ jobs:
cd build/release
ninja package
# Command copied from flathub build process
- name: Validate appdata file
if: matrix.env.ninja_platform == 'linux'
run: |
sudo apt install flatpak
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak install -y org.freedesktop.appstream-glib
flatpak run --env=G_DEBUG=fatal-criticals org.freedesktop.appstream-glib validate ./build/release/rsrc/linux/com.github.Murmele.Gittyup.appdata.xml
- name: Publish build artifacts
if: matrix.env.pack && !matrix.qt.check_only
uses: actions/upload-artifact@v2