Skip to content

Commit

Permalink
ci : update to be able to run locally
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Jul 18, 2023
1 parent 8b36204 commit 35171f5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ build-release/
build-sanitize-addr/
build-sanitize-thread/
build-cov/
build-ci-debug/
build-ci-release/
out/
tmp/
models/
models-mnt

compile_commands.json
CMakeSettings.json
Expand Down
23 changes: 18 additions & 5 deletions ci/run.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
#/bin/bash

if [ -z "$2" ]; then
echo "usage: $0 <output-dir> <mnt-dir>"
exit 1
fi

mkdir -p "$1"
mkdir -p "$2"

OUT=$(realpath "$1")
MNT=$(realpath "$2")

rm -v $OUT/*.log
rm -v $OUT/*.exit
rm -v $OUT/*.md

sd=`dirname $0`
cd $sd/../

SRC=`pwd`
OUT="$1"
MNT="$2"

## helpers

Expand Down Expand Up @@ -183,8 +195,9 @@ function gg_sum_mpt {
if [ -z $GG_BUILD_LOW_PERF ]; then
rm -rf ${SRC}/models-mnt

mkdir -p $(realpath ${MNT}/models)
ln -sfn ${MNT}/models ${SRC}/models-mnt
mnt_models=$(realpath ${MNT}/models)
mkdir -p ${mnt_models}
ln -sfn ${mnt_models} ${SRC}/models-mnt

python3 -m pip install -r ${SRC}/requirements.txt
fi
Expand Down

0 comments on commit 35171f5

Please sign in to comment.