2023-08-30 19:31:09 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/cedar-policy/cedar/archive/refs/tags/v{{ version }}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/cedar
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: cedar-policy/cedar
|
|
|
|
strip: /v/
|
|
|
|
|
|
|
|
build:
|
|
|
|
working-directory: cedar-policy-cli
|
|
|
|
dependencies:
|
|
|
|
rust-lang.org: '>=1.65'
|
|
|
|
rust-lang.org/cargo: '*'
|
|
|
|
script:
|
2024-03-29 22:28:31 +03:00
|
|
|
# version bump got missed in 3.1.1
|
|
|
|
- sed -i 's/^version = ".*"$/version = "{{version}}"/' Cargo.toml
|
|
|
|
- cargo install --locked --path . --root {{prefix}}
|
2023-08-30 19:31:09 +03:00
|
|
|
|
|
|
|
test:
|
|
|
|
script:
|
|
|
|
- test "$(cedar --version)" = "cedar-policy-cli {{version}}"
|