CI: Default to flatpak beta branch

This commit is contained in:
Ty Lamontagne 2024-10-18 10:59:44 -04:00 committed by Ty
parent 1562ba4ca0
commit 2d5faa627f
3 changed files with 24 additions and 12 deletions

View File

@ -43,7 +43,7 @@ jobs:
compiler: clang compiler: clang
cmakeflags: "" cmakeflags: ""
publish: true publish: true
branch: stable
fetchTags: true fetchTags: true
stableBuild: false
secrets: inherit secrets: inherit

View File

@ -23,10 +23,6 @@ on:
cmakeflags: cmakeflags:
required: true required: true
type: string type: string
branch:
required: false
type: string
default: "stable"
publish: publish:
required: false required: false
type: boolean type: boolean
@ -98,7 +94,8 @@ jobs:
run: | run: |
flatpak-builder-lint manifest .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.json flatpak-builder-lint manifest .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.json
- name: Build Flatpak - name: Build Flatpak (beta)
if: ${{ inputs.stableBuild == false || inputs.stableBuild == 'false' }}
uses: flathub-infra/flatpak-github-actions/flatpak-builder@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8 uses: flathub-infra/flatpak-github-actions/flatpak-builder@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8
with: with:
bundle: ${{ steps.artifact-metadata.outputs.artifact-name }}.flatpak bundle: ${{ steps.artifact-metadata.outputs.artifact-name }}.flatpak
@ -108,7 +105,23 @@ jobs:
build-bundle: true build-bundle: true
verbose: true verbose: true
mirror-screenshots-url: https://dl.flathub.org/media mirror-screenshots-url: https://dl.flathub.org/media
branch: ${{ inputs.branch }} branch: beta
cache: true
restore-cache: true
cache-key: ${{ inputs.os }} ${{ inputs.platform }} ${{ inputs.compiler }} flatpak ${{ hashFiles('.github/workflows/scripts/linux/flatpak/**/*.json') }}
- name: Build Flatpak (stable)
if: ${{ inputs.stableBuild == true || inputs.stableBuild == 'true' }}
uses: flathub-infra/flatpak-github-actions/flatpak-builder@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8
with:
bundle: ${{ steps.artifact-metadata.outputs.artifact-name }}.flatpak
upload-artifact: false
manifest-path: .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.json
arch: x86_64
build-bundle: true
verbose: true
mirror-screenshots-url: https://dl.flathub.org/media
branch: stable
cache: true cache: true
restore-cache: true restore-cache: true
cache-key: ${{ inputs.os }} ${{ inputs.platform }} ${{ inputs.compiler }} flatpak ${{ hashFiles('.github/workflows/scripts/linux/flatpak/**/*.json') }} cache-key: ${{ inputs.os }} ${{ inputs.platform }} ${{ inputs.compiler }} flatpak ${{ hashFiles('.github/workflows/scripts/linux/flatpak/**/*.json') }}
@ -117,8 +130,8 @@ jobs:
# run: | # run: |
# flatpak-builder-lint repo repo # flatpak-builder-lint repo repo
- name: Push to Flathub beta - name: Push to Flathub (beta)
if: inputs.publish == true && inputs.branch == 'beta' if: ${{ inputs.publish == true && (inputs.stableBuild == false || inputs.stableBuild == 'false') }}
uses: flathub-infra/flatpak-github-actions/flat-manager@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8 uses: flathub-infra/flatpak-github-actions/flat-manager@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8
with: with:
flat-manager-url: https://hub.flathub.org/ flat-manager-url: https://hub.flathub.org/
@ -126,8 +139,8 @@ jobs:
token: ${{ secrets.FLATHUB_BETA_TOKEN }} token: ${{ secrets.FLATHUB_BETA_TOKEN }}
build-log-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} build-log-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
- name: Push to Flathub stable - name: Push to Flathub (stable)
if: inputs.publish == true && inputs.branch == 'stable' if: ${{ inputs.publish == true && (inputs.stableBuild == true || inputs.stableBuild == 'true') }}
uses: flathub-infra/flatpak-github-actions/flat-manager@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8 uses: flathub-infra/flatpak-github-actions/flat-manager@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8
with: with:
flat-manager-url: https://hub.flathub.org/ flat-manager-url: https://hub.flathub.org/

View File

@ -114,7 +114,6 @@ jobs:
artifactPrefixName: "PCSX2-linux-Qt-x64-flatpak" artifactPrefixName: "PCSX2-linux-Qt-x64-flatpak"
compiler: clang compiler: clang
cmakeflags: "" cmakeflags: ""
branch: "stable"
publish: false publish: false
fetchTags: true fetchTags: true
stableBuild: ${{ github.event_name == 'workflow_dispatch' && inputs.is_prelease == 'false' }} stableBuild: ${{ github.event_name == 'workflow_dispatch' && inputs.is_prelease == 'false' }}