2024-01-05 04:45:25 +03:00
distributable :
2024-01-05 08:04:49 +03:00
url : https://tailcall.gateway.scarf.sh/archive/refs/tags/tailcall-v{{ version }}.tar.gz
2024-01-05 04:45:25 +03:00
strip-components : 1
provides :
- bin/tailcall
versions :
github : tailcallhq/tailcall
strip : /v/
build :
env :
2024-03-21 18:26:56 +03:00
APP_VERSION : '{{ version }}'
2024-01-05 04:45:25 +03:00
dependencies :
2024-03-21 18:26:56 +03:00
rust-lang.org : '>=1.65'
rust-lang.org/cargo : '*'
2024-03-29 17:07:45 +03:00
protobuf.dev : '*'
script :
# tries to load a vendored `protoc` with the wrong architecture
- sed -i 's|protoc_bin_vendored::protoc_bin_path().expect("Failed to find protoc binary")|Path::new("{{deps.protobuf.dev.prefix}}/bin/protoc")|' build.rs
- cargo install --locked --path . --root {{prefix}}
2024-01-05 04:45:25 +03:00
test :
script :
2024-03-21 18:26:56 +03:00
# required file
- run : touch .env
2024-03-21 19:42:20 +03:00
if : '>=0.65.0'
2024-03-29 17:02:09 +03:00
- tailcall --version | grep "tailcall {{version}}"