diff options
author | DioEgizio <83089242+DioEgizio@users.noreply.github.com> | 2022-11-14 17:29:41 +0100 |
---|---|---|
committer | DioEgizio <83089242+DioEgizio@users.noreply.github.com> | 2022-11-15 17:45:12 +0100 |
commit | 464b9ebc95ca0743dd13337a9db7159aab76292a (patch) | |
tree | 5ced5f1eb72f55dc9aee3903552a8df0f9c275fc /.github | |
parent | cedc7754d96e4c53d50bcce2b2a0f139b840f3d0 (diff) | |
download | PrismLauncher-464b9ebc95ca0743dd13337a9db7159aab76292a.tar.gz PrismLauncher-464b9ebc95ca0743dd13337a9db7159aab76292a.tar.bz2 PrismLauncher-464b9ebc95ca0743dd13337a9db7159aab76292a.zip |
feat: add flatpak builds to the ci for testing
Signed-off-by: DioEgizio <83089242+DioEgizio@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 61fd9b4c..df8aae39 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -492,16 +492,35 @@ jobs: submodules: 'true' - name: Set short version shell: bash + if: inputs.build_type == 'Debug' run: | ver_short=`git rev-parse --short HEAD` echo "VERSION=$ver_short" >> $GITHUB_ENV - name: Package Snap (Linux) id: snapcraft - if: runner.os == 'Linux' && inputs.build_type == 'Debug' + if: inputs.build_type == 'Debug' uses: snapcore/action-build@v1 - name: Upload Snap (Linux) - if: runner.os == 'Linux' && inputs.build_type == 'Debug' + if: inputs.build_type == 'Debug' uses: actions/upload-artifact@v3 with: name: prismlauncher_${{ env.VERSION }}_amd64.snap path: ${{ steps.snapcraft.outputs.snap }} + + flatpak: + runs-on: ubuntu-latest + container: + image: bilelmoussaoui/flatpak-github-actions:kde-5.15-22.08 + options: --privileged + steps: + - name: Checkout + uses: actions/checkout@v3 + if: inputs.build_type == 'Debug' + with: + submodules: 'true' + - name: Build Flatpak (Linux) + if: inputs.build_type == 'Debug' + uses: flatpak/flatpak-github-actions/flatpak-builder@v4 + with: + bundle: "Prism Launcher.flatpak" + manifest-path: flatpak/org.prismlauncher.PrismLauncher.yml |