chore: standardize Nim builds to out/ subdir, simplify .gitignore
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
# Launch config for tools/training_runner/RunTraining.java (#49): the runner
|
||||
# executes <json-basename>.sh inside the bot dir (sample-bots convention).
|
||||
exec "$(dirname "$0")/SAC_LSTM_Bot"
|
||||
exec "$(dirname "$0")/out/SAC_LSTM_Bot"
|
||||
|
||||
@@ -5,6 +5,7 @@ switch("passL", "-L/nix/store/v07svn2y92bvzjl51aj7c9ca1cwg7rw7-openblas-0.3.32/l
|
||||
# ponytail: nix store path; adjust per machine, or use pkg-config
|
||||
switch("passL", "-L/nix/store/wqvz31s598bvj3zb747943xhl38hjc6h-libzip-1.11.4/lib -lzip")
|
||||
switch("threads", "on")
|
||||
switch("outdir", "out")
|
||||
# Submodules import each other as SAC_LSTM_Bot/<mod>; make that resolvable for
|
||||
# the binary build too (tests already add ../src via tests/config.nims).
|
||||
switch("path", thisDir() & "/src")
|
||||
|
||||
@@ -17,7 +17,7 @@ set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
TARGET="${1:-${SAMPLE_BOTS_DIR:-/home/davide/Projects/tank-royale/sample-bots/java/build/archive}}/SacTwin"
|
||||
BIN="$SCRIPT_DIR/SAC_LSTM_Bot" # nimble build -d:release output
|
||||
BIN="$SCRIPT_DIR/out/SAC_LSTM_Bot" # nimble build -d:release output (out/ subdir)
|
||||
SEED="$SCRIPT_DIR/weights/sac_best.zip" # frozen baseline
|
||||
|
||||
[ -x "$BIN" ] || { echo ">>> $BIN missing — run 'nimble build -d:release' first"; exit 1; }
|
||||
|
||||
Reference in New Issue
Block a user