build: Add support for flatpaks

Based on the original work of @Calinou
This commit is contained in:
WerWolv
2021-08-25 14:52:07 +02:00
parent e6c150c586
commit 2eb7825e69
2 changed files with 88 additions and 0 deletions

View File

@@ -12,6 +12,9 @@ jobs:
linux:
runs-on: ubuntu-20.04
name: 🐧 Ubuntu 20.04
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-40
options: --privileged
steps:
- name: 🧰 Checkout
@@ -39,6 +42,13 @@ jobs:
..
make -j 4 install
- name: ✋ Bundle Flatpak
uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v4
with:
bundle: imhex.flatpak
manifest-path: dist/net.werwolv.ImHex.yaml
cache-key: flatpak-builder-${{ github.sha }}
- name: 📦 Upload ELF
uses: actions/upload-artifact@v2
with:
@@ -46,6 +56,13 @@ jobs:
path: |
build/install/*
- name: 📦 Upload Flatpak
uses: actions/upload-artifact@v2
with:
name: Linux Flatpak
path: |
build/*.flatpak
win:
runs-on: windows-latest
name: 🟦 Windows MINGW64