# Build the integer decoder for the CPU, for the GPU (ops_gpu) and for wasm32-wasip2 into $RB_ROOT/idf/bin/.. set -euo pipefail TAG=${1:?tag}; B=$RB_ROOT/idf/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/native.$TAG 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/gpu.$TAG 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/wasm.$TAG ls -la $B