mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 10:35:17 +03:00
35 lines
727 B
YAML
35 lines
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}}" |