pantry/projects/wasmer.io/package.yml
Rajdeep Malakar bcb6ddebfd +wasmer.io
2023-10-20 08:37:25 -04:00

35 lines
No EOL
727 B
YAML

distributable:
strip-components: 1
url: https://github.com/wasmerio/wasmer/archive/refs/tags/v{{version.raw}}.tar.gz
versions:
github: wasmerio/wasmer/tags
strip: /v/
interprets:
extensions: wasm
args: [wasmer, run]
build:
dependencies:
rust-lang.org: ^1.65
rust-lang.org/cargo: ^0
nodejs.org: ^18
gnu.org/make: ^4
env:
RUSTFLAGS:
# Ignore warnings (to focus on errors)
- -A warnings
# Remove debug information (to reduce binary size)
- -C debuginfo=0
script: |
mkdir -p "{{prefix}}"/bin
make build-wasmer
mv target/release/wasmer "{{prefix}}"/bin
provides:
- bin/wasmer
test:
script: |
test "$(wasmer --version)" = "wasmer {{version.raw}}"