Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

build: Packageprqlc as Snap #1881

Merged
merged 15 commits into from
Feb 21, 2023
Merged
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
19 changes: 19 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,25 @@ jobs:
desc:
prqlc is the CLI for PRQL, a modern language for transforming data

build-and-publish-snap:
runs-on: ubuntu-latest

# Skip running workflow on forks
if: github.repository_owner == 'prql'

steps:
- name: 📂 Checkout code
uses: actions/checkout@v3
- name: 📦 Build Snap
uses: snapcore/action-build@v1
- name: 🆙 Publish Snap
uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
snap: ${{ steps.build.outputs.snap }}
release: edge

build-python-wheels:
runs-on: ${{ matrix.os }}
strategy:
Expand Down
28 changes: 28 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: prqlc # you probably want to 'snapcraft register <name>'
title: PRQL Compiler
base: core20 # the base snap is the execution environment for this snap
version: git
summary: PRQL is a modern language for transforming data
description: |
PRQL is a modern language for transforming data — a simple, powerful,
pipelined SQL replacement.
issues: https://github.com/PRQL/prql/issues
source-code: https://github.com/PRQL/prql
contact: https://twitter.com/prql_lang
website: https://prql-lang.org/
license: Apache-2.0
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: strict
icon: website/themes/prql-theme/static/icon.svg

parts:
prqlc:
plugin: rust
source: .
rust-path: [prql-compiler/prqlc]

apps:
prqlc:
command: bin/prqlc
plugs:
- home