mirror of
https://github.com/wimpysworld/stream-sprout
synced 2026-03-14 14:45:50 +01:00
feat: Add snap support (#23)
* WIP: snapcraft config * chore: tidy up snap workflow * fix: update ld_library_path * fix the version of the snap This uses a combination of most recent git tag and short rev. * Add git as a build package Required because we have a dump plugin and a nill plugin which pull in next to nothing. Making it hard to do a version stamp without the git command
This commit is contained in:
parent
a79438f0d2
commit
0eba5601d7
2 changed files with 94 additions and 0 deletions
38
.github/workflows/test-snap-builds.yml
vendored
Normal file
38
.github/workflows/test-snap-builds.yml
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
name: 🧪 Test snap builds on x86_64
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build snap
|
||||
uses: snapcore/action-build@v1
|
||||
id: snapcraft
|
||||
|
||||
- name: Show log on build failure
|
||||
if: ${{ failure() }}
|
||||
run: |
|
||||
cat /home/runner/.local/state/snapcraft/log/snapcraft*.log
|
||||
exit 1
|
||||
|
||||
- name: Review snap
|
||||
uses: diddlesnaps/snapcraft-review-action@v1
|
||||
with:
|
||||
snap: ${{ steps.snapcraft.outputs.snap }}
|
||||
isClassic: 'false'
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: 'snap'
|
||||
path: ${{ steps.snapcraft.outputs.snap}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue