-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev
More file actions
executable file
·43 lines (43 loc) · 1.42 KB
/
Copy pathdev
File metadata and controls
executable file
·43 lines (43 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
CMD=${1:-help}
case $CMD in
test|t) cargo test --workspace -- --nocapture ;;
build|b) cargo build --workspace --release ;;
run|r) cargo run --release -- "${@:2}" ;;
predict|p)
cargo run --release -- predict "${@:2}"
;;
bench) cargo run --release --bin bench_nls ;;
wasm|w)
wasm-pack build crates/rogue-wasm --target web --out-dir ../../education/pkg --release
;;
check|c) cargo check --workspace && cargo test --workspace ;;
clean) cargo clean; rm -rf education/pkg education/node_modules education/dist ;;
ui|edu)
(cd education && npm run dev)
;;
regress) bash scripts/regress-all.sh ;;
regress-prod)
bash scripts/regress-production.sh
;;
setup)
cargo fetch
(cd education && npm install)
./dev wasm
;;
*)
echo "Usage: ./dev [t|b|r|bench|w|c|clean|ui|regress|setup]"
echo " t/test cargo test workspace"
echo " b/build release build"
echo " r/run rogue CLI [scenario …]"
echo " p/predict production sea-state forecast from CSV"
echo " bench NLS 1024×1024 bench"
echo " w/wasm wasm-pack → education/pkg"
echo " ui vite dev server (education demo)"
echo " regress akhmediev/peregrine/ocean/blowup regression suite"
echo " regress-prod production CSV intake regression"
echo " setup fetch + npm i + wasm"
;;
esac