11 lines
275 B
Bash
Executable File
11 lines
275 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cargo build --manifest-path ./rust/Cargo.toml
|
|
|
|
BUNDLED_LIB_DIR=$(cabal list-bin . | sed -e 's=x/garnet/build/garnet/garnet=build=g')
|
|
mkdir -p $BUNDLED_LIB_DIR
|
|
ln -sf $(pwd)/rust/target/debug/libgarnet_rs.a $BUNDLED_LIB_DIR
|
|
|
|
cabal build
|