Skip to content

Commit

Permalink
CI/Flatpak: Validate build before pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Oct 28, 2023
1 parent 2a2cd0d commit 802081c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/linux_build_flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ jobs:
cat .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.metainfo.xml
flatpak run org.freedesktop.appstream-glib validate .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.metainfo.xml
- name: Validate manifest
run: |
flatpak run --command=flatpak-builder-lint org.flatpak.Builder manifest .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.json
- name: Build Flatpak
uses: flatpak/flatpak-github-actions/[email protected]
with:
Expand All @@ -103,6 +107,14 @@ jobs:
run: |
ostree commit --repo=repo --canonical-permissions --branch=screenshots/x86_64 flatpak_app/screenshots
- name: Validate build directory
run: |
flatpak run --command=flatpak-builder-lint org.flatpak.Builder builddir flatpak_app
- name: Validate repo
run: |
flatpak run --command=flatpak-builder-lint org.flatpak.Builder repo repo
- name: Push to Flathub beta
if: inputs.publish == true && inputs.branch == 'beta'
uses: flatpak/flatpak-github-actions/[email protected]
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/scripts/linux/install-packages-flatpak.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub
echo "Will install the following packages for building - ${FLATPAK_PACKAGES[*]}"
retry_command sudo flatpak -y install "${FLATPAK_PACKAGES[@]}"

echo "Installing Flatpak Builder"
retry_command sudo flatpak -y install flathub org.flatpak.builder

echo "Downloading flat-manager-client"
mkdir -p "$FLAT_MANAGER_CLIENT_DIR"
pushd "$FLAT_MANAGER_CLIENT_DIR"
Expand Down

0 comments on commit 802081c

Please sign in to comment.