mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-11-05 02:46:56 +03:00
validate appdata file
This commit is contained in:
parent
229b9d0b18
commit
7f738d93a9
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user