Add executable models and tools to download and build them

This commit is contained in:
Joshua Coles 2023-03-01 21:45:30 +00:00
parent 2a0cbece8d
commit 8a673365f6
4 changed files with 21 additions and 0 deletions

BIN
models/minimal-viable-alteration Executable file

Binary file not shown.

BIN
models/stick-probability Executable file

Binary file not shown.

View File

@ -0,0 +1,6 @@
CMD="$(dirname "$(realpath "$0")")/obtain-executable.bash"
# Download the two models and save them in the models directory
"$CMD" minimal-viable-alteration models/minimal-viable-alteration
"$CMD" stick-probability models/stick-probability

15
tools/obtain-executable.bash Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
GIT_REF=$1
OUTPUT_PATH=$(realpath "$2")
# Checkout in a temp directory so not to clutter anything out
cd "$(mktemp -d)" || exit
git clone ssh://git@git.joshuacoles.me:2222/joshuacoles/compb-dla-model.git .
git checkout "$GIT_REF"
# Clean and then build
make clean && make all
# Copy final executable to the specified output
cp ./run "$OUTPUT_PATH"