Skip to content

Commit

Permalink
github: don't build flatpak anymore
Browse files Browse the repository at this point in the history
Flatpak builds are still done on https://buildbot.flathub.org
  • Loading branch information
adil192 committed Dec 17, 2023
1 parent db5b253 commit f1202db
Showing 1 changed file with 0 additions and 56 deletions.
56 changes: 0 additions & 56 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,62 +255,6 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.compress.outputs.archiveName }}

build-flatpak:
name: Build flatpak
runs-on: ubuntu-latest
needs: [build-flutter-app-x86_64, get-version]
container:
image: bilelmoussaoui/flatpak-github-actions:freedesktop-22.08
options: --privileged
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true

- name: Remove unneeded files
run: |
rm -rf android
rm -rf assets_raw
rm -rf installers
rm -rf integration_test
rm -rf ios
rm -rf macos
rm -rf metadata
rm -rf test
rm -rf windows
- name: Download app archive
uses: actions/download-artifact@v3
with:
name: Saber-Archive-x86_64

- name: Rename app archive
run: |
mv Saber_*.tar.gz Saber-Linux-Portable.tar.gz
- name: Build .flatpak
uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6
with:
bundle: Saber.flatpak
manifest-path: flatpak/com.adilhanney.saber.json
cache-key: flatpak-builder-cache-${{ hashFiles('flatpak/com.adilhanney.saber.json') }}

- name: Rename .flatpak
id: rename
run: |
flatpakName="Saber_v${{ needs.get-version.outputs.buildName }}.flatpak"
echo "flatpakName=$flatpakName" >> $GITHUB_OUTPUT
mv Saber.flatpak $flatpakName
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Flatpak artifact
path: ${{ steps.rename.outputs.flatpakName }}

build-appimage:
name: Build AppImage
needs: [build-flutter-app-x86_64, get-version]
Expand Down

0 comments on commit f1202db

Please sign in to comment.