mirror of
https://github.com/ivabus/pantry
synced 2024-12-01 20:45:10 +03:00
d69b452c2d
closes #2657 closes #2663
34 lines
No EOL
971 B
YAML
34 lines
No EOL
971 B
YAML
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
|
|
|
|
provides:
|
|
- bin/prql-compiler
|
|
- bin/prqlc |