Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.

Create snapcraft.yaml #35

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
30 changes: 30 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -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