Skip to content

Commit

Permalink
.github/workflows/snap-builds.yaml: check for packages in manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
valentindavid committed Feb 21, 2025
1 parent af6ea33 commit a843c82
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/snap-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ jobs:
esac
- name: Build snapd snap
uses: snapcore/action-build@v1
uses: snapcore/action-build@v1.3.0
with:
snapcraft-channel: 8.x/stable
snapcraft-args: --verbose

- name: Check built artifact
run: |
unsquashfs snapd*.snap meta/snap.yaml usr/lib/snapd/
unsquashfs snapd*.snap snap/manifest.yaml meta/snap.yaml usr/lib/snapd/
if cat squashfs-root/meta/snap.yaml | grep -q "version:.*dirty.*"; then
echo "PR produces dirty snapd snap version"
cat squashfs-root/usr/lib/snapd/dirty-git-tree-info.txt
Expand All @@ -75,6 +75,12 @@ jobs:
cat squashfs-root/usr/lib/snapd/dirty-git-tree-info.txt
exit 1
fi
if yq '.primed-stage-packages' squashfs-root/snap/manifest.yaml | grep -q '^- libseccomp2=.*'; then
true
else
echo "primed-stage-packages missing in manifest" 1>&2
exit 1
fi
- name: Uploading snapd snap artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit a843c82

Please sign in to comment.