diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 72a47644..23250e1b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,7 +42,7 @@ jobs: run: | if [ "$RUNNER_OS" == "Linux" ]; then sudo apt-get update -qq; - sudo apt install -qq libx11-dev libqt5svg5-dev libx11-xcb-dev desktop-file-utils + sudo apt install -qq libx11-dev libqt5svg5-dev libx11-xcb-dev desktop-file-utils appstream-util elif [ "$RUNNER_OS" == "Windows" ]; then if [ "$ARCH" == "x86" ]; then echo "CMAKE_PLATFORM_ARG=-A Win32" >> $GITHUB_ENV @@ -78,7 +78,7 @@ jobs: - name: Tests working-directory: ${{runner.workspace}}/build run: cmake --build . --config Release --target tests && cmake --build . --config Release --target run_tests - - name: Validate desktop file + - name: Validate desktop file and app metadata working-directory: ${{ github.workspace }} if: runner.os == 'Linux' shell: bash @@ -88,6 +88,7 @@ jobs: echo "$output"; exit 1; fi + appstream-util validate src/res/com.ulduzsoft.Birdtray.appdata.xml - name: Check if this is a deployment build id: check-deploy shell: bash @@ -141,6 +142,10 @@ jobs: echo "Tag does not match: ${{ github.event.ref }}" exit 1 fi + - name: Verify that the app metadata contains the release + shell: bash + run: | + grep "version=\"${{ steps.deploy_check.outputs.version }}\"" src/res/com.ulduzsoft.Birdtray.appdata.xml -q || (echo "Version not found in src/res/com.ulduzsoft.Birdtray.appdata.xml"; exit 1) - name: Download installer (x86) uses: actions/download-artifact@v3 with: