CI: Use Flatpak build-bundle option

This option allows to build the Flatpak without generating a
bundle (artifact).

This allows to remove the requirement of the "Seeking Testers" label to
just test build the Flatpak.
This commit is contained in:
tytan652 2023-01-01 13:12:38 +01:00 committed by Georges Basile Stavracas Neto
parent 34e159425c
commit 409cfa4335

View file

@ -370,7 +370,7 @@ jobs:
path: '${{ env.FILE_NAME }}'
linux_package:
name: '02 - Flatpak Bundle'
name: '02 - Flatpak'
runs-on: [ubuntu-latest]
needs: [clang_check]
if: always()
@ -393,13 +393,11 @@ jobs:
- name: 'Checkout'
uses: actions/checkout@v3
if: ${{ success() && (github.event_name != 'pull_request' || env.SEEKING_TESTERS == '1') }}
with:
submodules: 'recursive'
fetch-depth: 0
- name: 'Setup build environment'
if: ${{ success() && (github.event_name != 'pull_request' || env.SEEKING_TESTERS == '1') }}
run: |
git config --global --add safe.directory $GITHUB_WORKSPACE
echo "OBS_GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV
@ -408,8 +406,8 @@ jobs:
- name: Build Flatpak Manifest
uses: flatpak/flatpak-github-actions/flatpak-builder@v5
if: ${{ success() && (github.event_name != 'pull_request' || env.SEEKING_TESTERS == '1') }}
with:
build-bundle: ${{ github.event_name != 'pull_request' || env.SEEKING_TESTERS == '1' }}
bundle: obs-studio-flatpak-${{ env.OBS_GIT_HASH }}.flatpak
manifest-path: CI/flatpak/com.obsproject.Studio.json
cache-key: flatpak-builder-${{ hashFiles('CI/flatpak/com.obsproject.Studio.json') }}