Skip to content

Commit

Permalink
CI: try to use flatpak to validate metainfo
Browse files Browse the repository at this point in the history
  • Loading branch information
cbm755 committed Feb 25, 2024
1 parent b7e273b commit a4fca3b
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,24 @@ jobs:
octave --eval "pkg uninstall doctest; pkg list"
appstream-validate:
runs-on: fedora:40
# maybe a later Ubuntu will have appstream >= 1, for now we pull from flatpak
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install Appstream
- name: Install Flatpak
run: |
sudo uname -a
sudo dnf install -y appstream
appstreamcli --version
whoami
uname -a
sudo apt-get update
sudo apt-get install -y flatpak
sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
sudo flatpak install -y org.freedesktop.appstream.cli
- name: Validate
run: |
pwd
ls
appstreamcli validate --strict --pedantic --explain io.github.gnu_octave.doctest.metainfo.xml
flatpak run org.freedesktop.appstream.cli --version
flatpak run org.freedesktop.appstream.cli validate --strict --pedantic --explain io.github.gnu_octave.doctest.metainfo.xml
# Built-in Self Tests for various supported Octave
# TODO: fail-fast -> true later
Expand Down

0 comments on commit a4fca3b

Please sign in to comment.