aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorPiper McCorkle <contact@piperswe.me>2022-10-26 06:11:19 -0500
committerPiper McCorkle <contact@piperswe.me>2022-10-26 09:25:58 -0500
commitaacf7938ae6cf3447d02847a1a4f606bd0b2f2cf (patch)
treebe5c5ee32d71a601e489521e4e074b90ca3e9976 /.github
parent2e0f8189057c2d9a3d76a9d88afe59f8daf41b08 (diff)
downloadPrismLauncher-aacf7938ae6cf3447d02847a1a4f606bd0b2f2cf.tar.gz
PrismLauncher-aacf7938ae6cf3447d02847a1a4f606bd0b2f2cf.tar.bz2
PrismLauncher-aacf7938ae6cf3447d02847a1a4f606bd0b2f2cf.zip
Add CI build for Snap
Signed-off-by: Piper McCorkle <contact@piperswe.me>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml24
1 files changed, 22 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ac701c1e..31e4112a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -412,5 +412,25 @@ jobs:
with:
name: PrismLauncher-${{ runner.os }}-${{ env.VERSION }}-${{ inputs.build_type }}-x86_64.AppImage
path: PrismLauncher-${{ runner.os }}-${{ env.VERSION }}-${{ inputs.build_type }}-x86_64.AppImage
-
-
+ snap:
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ with:
+ submodules: 'true'
+ - name: Set short version
+ shell: bash
+ run: |
+ ver_short=`git rev-parse --short HEAD`
+ echo "VERSION=$ver_short" >> $GITHUB_ENV
+ - name: Package Snap (Linux)
+ id: snapcraft
+ if: runner.os == 'Linux' && matrix.qt_ver != 5
+ uses: snapcore/action-build@v1
+ - name: Upload Snap (Linux)
+ if: runner.os == 'Linux' && matrix.qt_ver != 5
+ uses: actions/upload-artifact@v3
+ with:
+ name: prismlauncher_${{ env.VERSION }}_amd64.snap
+ path: ${{ steps.snapcraft.outputs.snap }}