From 71440455be96099075ec2c12f0e4dd91b7bdfb4b Mon Sep 17 00:00:00 2001 From: Mahad Date: Wed, 28 Jan 2026 15:58:30 +0500 Subject: [PATCH 1/2] add snap packaging --- snap/snapcraft.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..a9d09d4 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,26 @@ +name: wick +base: core24 +version: git +summary: WAMP in Command-line +description: | + WAMP in Command-line + +grade: stable +confinement: strict +compression: lzo + +parts: + wick: + plugin: rust + source: . + build-packages: + - pkg-config + - libssl-dev + +apps: + wick: + command: bin/wcli + plugs: + - network + - network-bind + - home From d4b9affc22061e4354fea3ddc0ac95aa70e65017 Mon Sep 17 00:00:00 2001 From: Mahad Date: Wed, 28 Jan 2026 15:58:46 +0500 Subject: [PATCH 2/2] build snap in CI --- .github/workflows/build-publish-snap.yaml | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build-publish-snap.yaml diff --git a/.github/workflows/build-publish-snap.yaml b/.github/workflows/build-publish-snap.yaml new file mode 100644 index 0000000..4e03fd2 --- /dev/null +++ b/.github/workflows/build-publish-snap.yaml @@ -0,0 +1,28 @@ +name: Build & Publish Snap + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build-publish-snap: + runs-on: ubuntu-latest + + steps: + - name: checkout git repository + uses: actions/checkout@v6 + + - name: Build the snap + uses: snapcore/action-build@v1 + with: + snapcraft-channel: 8.x/stable + + - name: Publish the snap + if: github.ref == 'refs/heads/main' && github.event_name == 'push' + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} + run: snapcraft upload wick_*.snap --release=edge