19 lines
406 B
Bash
19 lines
406 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
pushd "$(dirname "$0")"
|
||
|
|
||
|
nodejs_cargo_toml="../nodejs/native/Cargo.toml"
|
||
|
|
||
|
rm -rf node_modules
|
||
|
cp "$nodejs_cargo_toml" "$nodejs_cargo_toml.orig"
|
||
|
sed -i 's%^hyperbuild = .*$%hyperbuild = { path = "../.." }%' "$nodejs_cargo_toml"
|
||
|
HYPERBUILD_NODEJS_SKIP_BIN_DOWNLOAD=1 npm i
|
||
|
mv "$nodejs_cargo_toml.orig" "$nodejs_cargo_toml"
|
||
|
pushd hyperbuild-bench
|
||
|
cargo build --release
|
||
|
popd
|
||
|
|
||
|
popd
|