From 97a78336fa9729bc74058fd42ceedef02647b35a Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Mon, 26 Jan 2026 14:02:38 +0100 Subject: [PATCH] snap: build a devmode test snap (in ci) --- .github/workflows/ci.yml | 11 +++++++++++ snap/snapcraft.yaml | 42 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8926339..c6b3342 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,3 +49,14 @@ jobs: env: RUST_LOG: debug run: timeout 30m cargo test -- --nocapture + + snap: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: snapcore/action-build@v1 + - uses: actions/upload-artifact@v3 + with: + name: snap + path: ${{ steps.snapcraft.outputs.snap }} diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..16ff394 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,42 @@ +name: pkh +base: core24 +summary: pkh is a packaging helper for Debian/Ubuntu packages +description: | + pkh aims at wrapping the different debian tools and workflows + into one tool, that would have the same interface for everything, + while being smarter at integrating all workflows. +adopt-info: pkh-part + +confinement: devmode + +apps: + pkh: + command: bin/pkh + +parts: + pkh-part: + plugin: rust + source: . + override-pull: | + craftctl default + craftctl set version=$(git rev-parse --short=11 HEAD) + craftctl set grade="devel" + build-packages: + - pkg-config + - libssl-dev + - libgpg-error-dev + - libgpgme-dev + stage-packages: + - libgpgme11t64 + - git + - curl + - pristine-tar + - sbuild + - mmdebstrap + - util-linux + - dpkg-dev + stage: + - -usr/lib/x86_64-linux-gnu/libicuio.so.74.2 + - -usr/lib/x86_64-linux-gnu/libicutest.so.74.2 + - -usr/lib/x86_64-linux-gnu/libicutu.so.74.2 + - -usr/lib/x86_64-linux-gnu/libicui18n.so.74.2