trictrac/justfile

62 lines
1.8 KiB
Makefile
Raw Normal View History

2024-10-01 17:48:10 +02:00
#!/usr/bin/env -S just --justfile
# ^ A shebang isn't required, but allows a justfile to be executed
# like a script, with `./justfile test`, for example.
doc:
cargo doc --no-deps
2022-12-09 21:19:18 +01:00
shell:
2022-12-14 13:58:44 +01:00
devenv shell
2025-01-12 16:38:43 +01:00
runcli:
RUST_LOG=info cargo run --bin=client_cli
2026-03-25 20:16:46 +01:00
2026-04-25 16:49:25 +02:00
[working-directory: 'clients/web']
dev:
trunk serve
2026-05-02 20:02:47 +02:00
test-web:
wasm-pack test --node clients/web
2026-04-25 16:49:25 +02:00
[working-directory: 'clients/web']
build:
trunk build --release
cp dist/index.html ../../deploy/index.html
cp dist/*.wasm ../../deploy/
cp dist/*.js ../../deploy/
cp dist/*.css ../../deploy/
[working-directory: 'deploy']
run-relay:
./relay-server
build-relay:
CARGO_PROFILE_RELEASE_OPT_LEVEL=3 cargo build -p relay-server --release
mkdir -p deploy
cp target/release/relay-server deploy
2026-04-23 20:54:52 +02:00
cp -u server/relay-server/GameConfig.json deploy/
2026-03-25 20:16:46 +01:00
2025-01-12 16:38:43 +01:00
runclibots:
2025-08-18 17:44:01 +02:00
cargo run --bin=client_cli -- --bot random,dqnburn:./bot/models/burnrl_dqn_40.mpk
2025-08-10 15:32:41 +02:00
#cargo run --bin=client_cli -- --bot dqn:./bot/models/dqn_model_final.json,dummy
2025-08-04 18:04:40 +02:00
# RUST_LOG=info cargo run --bin=client_cli -- --bot dummy,dqn
2025-08-01 20:45:57 +02:00
match:
cargo build --release --bin=client_cli
LD_LIBRARY_PATH=./target/release ./target/release/client_cli -- --bot dummy,dqn
2025-02-08 08:52:01 +01:00
profile:
echo '1' | sudo tee /proc/sys/kernel/perf_event_paranoid
cargo build --profile profiling
samply record ./target/profiling/client_cli --bot dummy,dummy
2025-08-21 17:39:45 +02:00
trainbot algo:
# cargo run --bin=train_dqn # ok
2025-08-12 21:56:52 +02:00
# ./bot/scripts/trainValid.sh
2025-08-21 17:39:45 +02:00
./bot/scripts/train.sh {{algo}}
plottrainbot algo:
./bot/scripts/train.sh plot {{algo}}
2025-07-28 09:22:33 +02:00
debugtrainbot:
cargo build --bin=train_dqn_burn
RUST_BACKTRACE=1 LD_LIBRARY_PATH=./target/debug ./target/debug/train_dqn_burn
profiletrainbot:
echo '1' | sudo tee /proc/sys/kernel/perf_event_paranoid
cargo build --profile profiling --bin=train_dqn_burn
2025-08-01 20:45:57 +02:00
LD_LIBRARY_PATH=./target/profiling samply record ./target/profiling/train_dqn_burn