summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-11 11:46:38 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-12 16:08:16 +0000
commit95598e0fa90f369ee4b9e7dc125cb33d5c7b4e49 (patch)
tree8f1bcf11d74ebfc696f651ce710e9f4cf31a9baa
parentea0ab94d67b05b0accbc20c1cd619e4addf30178 (diff)
downloadmana-95598e0fa90f369ee4b9e7dc125cb33d5c7b4e49.tar.gz
mana-95598e0fa90f369ee4b9e7dc125cb33d5c7b4e49.tar.bz2
mana-95598e0fa90f369ee4b9e7dc125cb33d5c7b4e49.tar.xz
mana-95598e0fa90f369ee4b9e7dc125cb33d5c7b4e49.zip
GitHub Actions: Added workflow for building the snap
This helps with debugging potential issues with building the snap, since it also uploads the full snapcraft log, which is not available from snapcraft.io.
-rw-r--r--.github/workflows/snap.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/snap.yml b/.github/workflows/snap.yml
new file mode 100644
index 00000000..8ce2750b
--- /dev/null
+++ b/.github/workflows/snap.yml
@@ -0,0 +1,18 @@
+on: push
+
+jobs:
+ snap:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: snapcore/action-build@v1
+ id: snapcraft
+ - uses: actions/upload-artifact@v4
+ if: always()
+ with:
+ name: snapcraft.log
+ path: '/home/runner/.local/state/snapcraft/log/*.log'
+ - uses: actions/upload-artifact@v4
+ with:
+ name: mana_amd64.snap
+ path: ${{ steps.snapcraft.outputs.snap }}