# Build the three decoders on the build host: native CPU, native with GPU graphs, wasm32-wasip2. set -euo pipefail B=$RB_ROOT/det1/bin; mkdir -p $B cd wai/wai-rs cargo build --locked --release --no-default-features --features neural_int --bin wai_det_cost 2>&1 | tail -1 cp $CARGO_TARGET_DIR/release/wai_det_cost $B/wai_det_cost.native cargo build --locked --release --no-default-features --features neural_int,ops_gpu --bin wai_det_cost 2>&1 | tail -1 cp $CARGO_TARGET_DIR/release/wai_det_cost $B/wai_det_cost.gpu cargo build --locked --release --no-default-features --features neural_int --target wasm32-wasip2 --bin wai_det_cost 2>&1 | tail -1 cp $CARGO_TARGET_DIR/wasm32-wasip2/release/wai_det_cost.wasm $B/wai_det_cost.wasm ls -la $B