mirror of
https://github.com/wimpysworld/stream-sprout
synced 2026-03-14 14:45:50 +01:00
refactor: move test-snap-build alongside the other test build jobs
This commit is contained in:
parent
9830543ac5
commit
86352205af
2 changed files with 25 additions and 38 deletions
25
.github/workflows/test-build-stream-sprout.yml
vendored
25
.github/workflows/test-build-stream-sprout.yml
vendored
|
|
@ -10,6 +10,7 @@ on:
|
|||
- flake.nix
|
||||
- package.nix
|
||||
- Containerfile
|
||||
- snap/snapcraft.yaml
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
|
@ -19,6 +20,7 @@ on:
|
|||
- flake.nix
|
||||
- package.nix
|
||||
- Containerfile
|
||||
- snap/snapcraft.yaml
|
||||
workflow_dispatch:
|
||||
|
||||
# TODO: arm64 runner
|
||||
|
|
@ -88,3 +90,26 @@ jobs:
|
|||
platforms: linux/amd64, linux/arm64
|
||||
- name: Logout from Container Registry
|
||||
run: docker logout ghcr.io
|
||||
|
||||
test-snap-build:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Checkout 🥡
|
||||
uses: actions/checkout@v4
|
||||
- name: Build snap 🐊
|
||||
uses: snapcore/action-build@v1
|
||||
id: snapcraft
|
||||
- name: Show log 🪵
|
||||
if: ${{ failure() }}
|
||||
run: |
|
||||
cat /home/runner/.local/state/snapcraft/log/snapcraft*.log
|
||||
- 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}}
|
||||
|
|
|
|||
38
.github/workflows/test-snap-builds.yml
vendored
38
.github/workflows/test-snap-builds.yml
vendored
|
|
@ -1,38 +0,0 @@
|
|||
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