pantry/projects/prql-lang.org/package.yml

34 lines
971 B
YAML
Raw Normal View History

2023-01-13 14:20:20 +03:00
distributable:
url: https://github.com/PRQL/prql/archive/refs/tags/{{ version }}.tar.gz
strip-components: 1
versions:
github: PRQL/prql/tags
build:
dependencies:
rust-lang.org/cargo: '*'
script:
- run: cargo install --path prql-compiler --root {{prefix}}
if: <0.4.0
- run: cargo install --path prql-compiler --root {{prefix}} --all-features
if: =0.4.0
- run: cargo install --path prql-compiler/prqlc --root {{prefix}}
if: '>=0.4.1<0.9.0'
- run: cargo install --path crates/prqlc --root {{prefix}} --all-features
if: '>=0.9.0'
# Bin got renamed; this is one way to keep ourselves working
- run: ln -s prql-compiler prqlc
working-directory: "{{prefix}}/bin"
if: <0.4.0
- run: ln -s prqlc prql-compiler
working-directory: "{{prefix}}/bin"
if: '>=0.4.0'
test:
- echo "from employees | filter has_dog | select salary" | prqlc compile
2023-01-13 14:20:20 +03:00
provides:
- bin/prql-compiler
- bin/prqlc