From 9f0a4ea5fcef44c0356efae5642c9a892e992c70 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 11 Sep 2023 16:42:09 +0200 Subject: [PATCH 1/2] Create snapcraft.yaml --- snap/snapcraft.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..59f5c39 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,30 @@ +name: prql-query +title: pq +base: core22 +version: git +summary: Query and transform data with PRQL +description: | + pq allows you to use PRQL to easily query and transform your data. + + It is powered by Apache Arrow DataFusion and DuckDB and is written in Rust (so it's "blazingly fast" ™)! +issues: https://github.com/PRQL/prql-query/issues +source-code: https://github.com/PRQL/prql-query +contact: https://twitter.com/prql_lang +website: https://prql-lang.org/ +license: MIT +grade: devel # must be 'stable' to release into candidate/stable channels +confinement: strict +#icon: icon.svg + +parts: + prql-query: + plugin: rust + source: . + build-packages: [cargo] + rust-path: [crates/prql-query] + +apps: + prql-query: + command: bin/pq + plugs: + - home From 376888cc5d2781c6bd1d9ad5d462777874c085ee Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sat, 23 Sep 2023 21:12:55 +0200 Subject: [PATCH 2/2] Update release.yaml --- .github/workflows/release.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 34d9d13..92be602 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -112,3 +112,20 @@ jobs: URL: 'https://github.com/prql/prql-query/archive/${{ github.ref }}.tar.gz' } }) + + build-and-publish-snap: + runs-on: ubuntu-latest + steps: + - name: 📂 Checkout code + uses: actions/checkout@v4 + - name: 📦 Build Snap + id: build + uses: snapcore/action-build@v1 + #- name: 🆙 Publish Snap + # uses: snapcore/action-publish@v1 + # env: + # SNAPCRAFT_STORE_CREDENTIALS: + # ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} + # with: + # snap: ${{ steps.build.outputs.snap }} + # release: edge