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

37 lines
1.1 KiB
YAML
Raw Permalink 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:
2023-10-27 00:34:00 +03:00
rust-lang.org: ^1.65
2023-01-13 14:20:20 +03:00
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
2023-10-27 00:34:00 +03:00
if: '>=0.9.0<0.10.0'
- run: cargo install --path prqlc/prqlc --root {{prefix}} --all-features
if: '>=0.10.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