CI: Temporarily disable Flatpak builds

Until the KDE 6.8 SDK has been released.

It's been almost 2 weeks, the branch is live in their repo, but nothing
on flathub. No clue what's going on.
This commit is contained in:
Stenzek 2024-10-20 13:30:55 +10:00
parent 056b629837
commit 45f782962e
No known key found for this signature in database
1 changed files with 93 additions and 92 deletions

View File

@ -455,95 +455,95 @@ jobs:
name: "linux-x64-sse2-appimage" name: "linux-x64-sse2-appimage"
path: "DuckStation-x64-SSE2.AppImage" path: "DuckStation-x64-SSE2.AppImage"
# Disabled until KDE release the Qt 6.8 SDK
linux-flatpak-build: #linux-flatpak-build:
name: Linux Flatpak Build # name: Linux Flatpak Build
runs-on: ubuntu-22.04 # runs-on: ubuntu-22.04
container: # container:
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.7 # image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.7
options: --privileged # options: --privileged
timeout-minutes: 120 # timeout-minutes: 120
steps: # steps:
- uses: actions/checkout@v4.1.6 # - uses: actions/checkout@v4.1.6
with: # with:
fetch-depth: 0 # fetch-depth: 0
set-safe-directory: ${{ env.GITHUB_WORKSPACE }} # set-safe-directory: ${{ env.GITHUB_WORKSPACE }}
#
# Work around container ownership issue # # Work around container ownership issue
- name: Set Safe Directory # - name: Set Safe Directory
shell: bash # shell: bash
run: git config --global --add safe.directory "*" # run: git config --global --add safe.directory "*"
#
- name: Initialize Build Tag # - name: Initialize Build Tag
run: | # run: |
echo '#pragma once' > src/scmversion/tag.h # echo '#pragma once' > src/scmversion/tag.h
#
- name: Set Build Tags # - name: Set Build Tags
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' # if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
run: | # run: |
echo '#define SCM_RELEASE_TAGS {"latest", "preview"}' >> src/scmversion/tag.h # echo '#define SCM_RELEASE_TAGS {"latest", "preview"}' >> src/scmversion/tag.h
#
- name: Tag as Preview Release # - name: Tag as Preview Release
if: github.ref == 'refs/heads/master' # if: github.ref == 'refs/heads/master'
run: | # run: |
echo '#define SCM_RELEASE_TAG "preview"' >> src/scmversion/tag.h # echo '#define SCM_RELEASE_TAG "preview"' >> src/scmversion/tag.h
#
- name: Tag as Rolling Release # - name: Tag as Rolling Release
if: github.ref == 'refs/heads/dev' # if: github.ref == 'refs/heads/dev'
run: | # run: |
echo '#define SCM_RELEASE_TAG "latest"' >> src/scmversion/tag.h # echo '#define SCM_RELEASE_TAG "latest"' >> src/scmversion/tag.h
#
- name: Download Patch Archives # - name: Download Patch Archives
shell: bash # shell: bash
run: | # run: |
cd data/resources # cd data/resources
curl -LO "https://github.com/duckstation/chtdb/releases/download/latest/cheats.zip" # curl -LO "https://github.com/duckstation/chtdb/releases/download/latest/cheats.zip"
curl -LO "https://github.com/duckstation/chtdb/releases/download/latest/patches.zip" # curl -LO "https://github.com/duckstation/chtdb/releases/download/latest/patches.zip"
#
- name: Generate AppStream XML # - name: Generate AppStream XML
run: | # run: |
scripts/generate-metainfo.sh scripts/flatpak # scripts/generate-metainfo.sh scripts/flatpak
cat scripts/flatpak/org.duckstation.DuckStation.metainfo.xml # cat scripts/flatpak/org.duckstation.DuckStation.metainfo.xml
#
- name: Validate AppStream XML # - name: Validate AppStream XML
run: flatpak-builder-lint appstream scripts/flatpak/org.duckstation.DuckStation.metainfo.xml # run: flatpak-builder-lint appstream scripts/flatpak/org.duckstation.DuckStation.metainfo.xml
#
- name: Validate Manifest # - name: Validate Manifest
run: flatpak-builder-lint manifest scripts/flatpak/org.duckstation.DuckStation.yaml # run: flatpak-builder-lint manifest scripts/flatpak/org.duckstation.DuckStation.yaml
#
- name: Build Flatpak # - name: Build Flatpak
uses: flathub-infra/flatpak-github-actions/flatpak-builder@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8 # uses: flathub-infra/flatpak-github-actions/flatpak-builder@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8
with: # with:
bundle: duckstation-x64.flatpak # bundle: duckstation-x64.flatpak
upload-artifact: false # upload-artifact: false
manifest-path: scripts/flatpak/org.duckstation.DuckStation.yaml # manifest-path: scripts/flatpak/org.duckstation.DuckStation.yaml
arch: x86_64 # arch: x86_64
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: stable # branch: stable
cache: true # cache: true
restore-cache: true # restore-cache: true
cache-key: flatpak-x64-${{ hashFiles('scripts/flatpak/**/*.yaml') }} # cache-key: flatpak-x64-${{ hashFiles('scripts/flatpak/**/*.yaml') }}
#
- name: Validate Build # - name: Validate Build
run: | # run: |
flatpak-builder-lint repo repo # flatpak-builder-lint repo repo
#
- name: Push To Flathub Stable # - name: Push To Flathub Stable
if: github.ref == 'refs/heads/dev' # if: github.ref == 'refs/heads/dev'
uses: flathub-infra/flatpak-github-actions/flat-manager@b6c92176b7f578aedd80cac74cd8f0336f618e89 # uses: flathub-infra/flatpak-github-actions/flat-manager@b6c92176b7f578aedd80cac74cd8f0336f618e89
with: # with:
flat-manager-url: https://hub.flathub.org/ # flat-manager-url: https://hub.flathub.org/
repository: stable # repository: stable
token: ${{ secrets.FLATHUB_STABLE_TOKEN }} # token: ${{ secrets.FLATHUB_STABLE_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: Upload Flatpak # - name: Upload Flatpak
uses: actions/upload-artifact@v4.3.3 # uses: actions/upload-artifact@v4.3.3
with: # with:
name: "linux-flatpak" # name: "linux-flatpak"
path: "duckstation-x64.flatpak" # path: "duckstation-x64.flatpak"
macos-build: macos-build:
@ -622,7 +622,8 @@ jobs:
create-release: create-release:
name: Create Release name: Create Release
needs: [windows-x64-build, windows-x64-sse2-build, windows-arm64-build, linux-x64-appimage-build, linux-x64-sse2-appimage-build, linux-flatpak-build, macos-build] #needs: [windows-x64-build, windows-x64-sse2-build, windows-arm64-build, linux-x64-appimage-build, linux-x64-sse2-appimage-build, linux-flatpak-build, macos-build]
needs: [windows-x64-build, windows-x64-sse2-build, windows-arm64-build, linux-x64-appimage-build, linux-x64-sse2-appimage-build, macos-build]
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
steps: steps:
@ -651,7 +652,7 @@ jobs:
./artifacts/windows-arm64/duckstation-windows-arm64-release-symbols.zip ./artifacts/windows-arm64/duckstation-windows-arm64-release-symbols.zip
./artifacts/linux-x64-appimage/DuckStation-x64.AppImage ./artifacts/linux-x64-appimage/DuckStation-x64.AppImage
./artifacts/linux-x64-sse2-appimage/DuckStation-x64-SSE2.AppImage ./artifacts/linux-x64-sse2-appimage/DuckStation-x64-SSE2.AppImage
./artifacts/linux-flatpak/duckstation-x64.flatpak #./artifacts/linux-flatpak/duckstation-x64.flatpak
./artifacts/macos/duckstation-mac-release.zip ./artifacts/macos/duckstation-mac-release.zip
- name: Create Rolling Release - name: Create Rolling Release
@ -671,6 +672,6 @@ jobs:
./artifacts/windows-arm64/duckstation-windows-arm64-release-symbols.zip ./artifacts/windows-arm64/duckstation-windows-arm64-release-symbols.zip
./artifacts/linux-x64-appimage/DuckStation-x64.AppImage ./artifacts/linux-x64-appimage/DuckStation-x64.AppImage
./artifacts/linux-x64-sse2-appimage/DuckStation-x64-SSE2.AppImage ./artifacts/linux-x64-sse2-appimage/DuckStation-x64-SSE2.AppImage
./artifacts/linux-flatpak/duckstation-x64.flatpak #./artifacts/linux-flatpak/duckstation-x64.flatpak
./artifacts/macos/duckstation-mac-release.zip ./artifacts/macos/duckstation-mac-release.zip