pantry/projects/edgedb.com/package.yml

33 lines
830 B
YAML
Raw Normal View History

distributable:
strip-components: 1
url: https://github.com/edgedb/edgedb-cli/archive/refs/tags/v{{version.raw}}.tar.gz
versions:
github: edgedb/edgedb-cli/tags
strip: /v/
build:
dependencies:
rust-lang.org: ^1.61
rust-lang.org/cargo: ^0
perl.org: ^5
env:
RUSTFLAGS:
2024-04-02 22:43:00 +03:00
# Ignore warnings (to focus on errors)
- -A warnings
# Reduce build size by excluding debug symbols.
- -C debuginfo=0
2023-10-25 02:10:04 +03:00
script:
# Required to avoid conflicts
2023-10-25 02:10:04 +03:00
- mv build.rs build.rs.bak || true
# match contains an unknown arm
2024-04-02 22:43:00 +03:00
- run: sed -i -e's|T::Argument => None|// T::Argument => None|' highlight.rs
2023-10-25 02:10:04 +03:00
working-directory: src
if: '>=4'
2024-04-02 22:43:00 +03:00
- cargo install --locked --path . --root {{prefix}}
2024-04-02 22:43:00 +03:00
test: test "$(edgedb --version)" = "EdgeDB CLI {{version.raw}}"
provides:
- bin/edgedb