mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
3270c4d7a9
commit
f255ed67f8
1 changed files with 30 additions and 0 deletions
30
projects/crates.io/wasm-pack/package.yml
Normal file
30
projects/crates.io/wasm-pack/package.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
distributable:
|
||||
url: https://github.com/rustwasm/wasm-pack/archive/refs/tags/v{{version.raw}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: rustwasm/wasm-pack/tags
|
||||
strip: /v/
|
||||
|
||||
dependencies:
|
||||
# It needs Rust and Cargo at runtime as well (for building)
|
||||
rust-lang.org: "*"
|
||||
rust-lang.org/cargo: "*"
|
||||
|
||||
build:
|
||||
env:
|
||||
RUSTFLAGS:
|
||||
# Ignore warnings (to focus on errors)
|
||||
- -A warnings
|
||||
# Reduce build size by excluding debug symbols.
|
||||
- -C debuginfo=0
|
||||
script: |
|
||||
cargo install --path . --root {{prefix}}
|
||||
|
||||
test:
|
||||
#FIXME Add tests for seeing if it's able to build correctly
|
||||
script: |
|
||||
test "$(wasm-pack --version)" = "wasm-pack {{version.raw}}"
|
||||
|
||||
provides:
|
||||
- bin/wasm-pack
|
Loading…
Reference in a new issue