mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02:00
CI: Update Flatpak AppStream validation
Also add AppStream validation to Build Project workflow
This commit is contained in:
parent
63eef36786
commit
409bd12db3
15
.github/workflows/build-project.yaml
vendored
15
.github/workflows/build-project.yaml
vendored
@ -244,6 +244,8 @@ jobs:
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
env:
|
||||
FLATPAK_BUILD_SHARE_PATH: flatpak_app/files/share
|
||||
container:
|
||||
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.6
|
||||
options: --privileged
|
||||
@ -298,6 +300,19 @@ jobs:
|
||||
cache-key: ${{ steps.setup.outputs.cacheKey }}
|
||||
mirror-screenshots-url: https://dl.flathub.org/media
|
||||
|
||||
- name: Validate AppStream
|
||||
uses: ./.github/actions/flatpak-builder-lint
|
||||
with:
|
||||
artifact: appstream
|
||||
path: ${{ env.FLATPAK_BUILD_SHARE_PATH }}/metainfo/com.obsproject.Studio.metainfo.xml
|
||||
|
||||
- name: Verify Icon and Metadata in app-info
|
||||
working-directory: ${{ env.FLATPAK_BUILD_SHARE_PATH }}
|
||||
run: |
|
||||
: Verify Icon and Metadata in app-info
|
||||
test -f app-info/icons/flatpak/128x128/com.obsproject.Studio.png || { echo "::error::Missing 128x128 icon in app-info"; exit 1; }
|
||||
test -f app-info/xmls/com.obsproject.Studio.xml.gz || { echo "::error::Missing com.obsproject.Studio.xml.gz in app-info"; exit 1; }
|
||||
|
||||
- name: Validate build directory
|
||||
uses: ./.github/actions/flatpak-builder-lint
|
||||
with:
|
||||
|
16
.github/workflows/publish.yaml
vendored
16
.github/workflows/publish.yaml
vendored
@ -49,7 +49,7 @@ jobs:
|
||||
run:
|
||||
shell: bash
|
||||
env:
|
||||
FLATPAK_BUILD_PATH: flatpak_app/files/share
|
||||
FLATPAK_BUILD_SHARE_PATH: flatpak_app/files/share
|
||||
TWITCH_CLIENTID: ${{ secrets.TWITCH_CLIENT_ID }}
|
||||
TWITCH_HASH: ${{ secrets.TWITCH_HASH }}
|
||||
RESTREAM_CLIENTID: ${{ secrets.RESTREAM_CLIENTID }}
|
||||
@ -114,17 +114,17 @@ jobs:
|
||||
branch: ${{ matrix.branch }}
|
||||
|
||||
- name: Validate AppStream
|
||||
working-directory: ${{ env.FLATPAK_BUILD_PATH }}
|
||||
run: |
|
||||
: Validate AppStream
|
||||
appstream-util validate appdata/com.obsproject.Studio.appdata.xml
|
||||
uses: ./.github/actions/flatpak-builder-lint
|
||||
with:
|
||||
artifact: appstream
|
||||
path: ${{ env.FLATPAK_BUILD_SHARE_PATH }}/metainfo/com.obsproject.Studio.metainfo.xml
|
||||
|
||||
- name: Verify Icon and Metadata in app-info
|
||||
working-directory: ${{ env.FLATPAK_BUILD_PATH }}
|
||||
working-directory: ${{ env.FLATPAK_BUILD_SHARE_PATH }}
|
||||
run: |
|
||||
: Verify Icon and Metadata in app-info
|
||||
test -f app-info/icons/flatpak/128x128/com.obsproject.Studio.png || { echo "Missing 128x128 icon in app-info!"; exit 1; }
|
||||
test -f app-info/xmls/com.obsproject.Studio.xml.gz || { echo "Missing com.obsproject.Studio.xml.gz in app-info!"; exit 1; }
|
||||
test -f app-info/icons/flatpak/128x128/com.obsproject.Studio.png || { echo "::error::Missing 128x128 icon in app-info"; exit 1; }
|
||||
test -f app-info/xmls/com.obsproject.Studio.xml.gz || { echo "::error::Missing com.obsproject.Studio.xml.gz in app-info"; exit 1; }
|
||||
|
||||
- name: Validate build directory
|
||||
uses: ./.github/actions/flatpak-builder-lint
|
||||
|
Loading…
Reference in New Issue
Block a user