2023-10-19 20:07:27 +03:00
|
|
|
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:
|
2023-10-19 20:07:27 +03:00
|
|
|
# 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}}
|
2023-10-19 20:07:27 +03:00
|
|
|
|
2024-04-02 22:43:00 +03:00
|
|
|
test: test "$(edgedb --version)" = "EdgeDB CLI {{version.raw}}"
|
2023-10-19 20:07:27 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/edgedb
|