Skip to content

Commit

Permalink
try fix ci builds
Browse files Browse the repository at this point in the history
  • Loading branch information
LostRuins committed Nov 23, 2024
1 parent afc575f commit fd073fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions create_ver_file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ vminor=$(echo $extracted_ver | cut -d '.' -f2)
echo "Major Version: $vmajor"
echo "Minor Version: $vminor"
cp version_template.txt version.txt
sed -i "s/MYVER_MAJOR/$vmajor/g" version.txt
sed -i "s/MYVER_MINOR/$vminor/g" version.txt
sed "s/MYVER_MAJOR/$vmajor/g" version.txt > tempversion.txt && mv tempversion.txt version.txt
sed "s/MYVER_MINOR/$vminor/g" version.txt > tempversion.txt && mv tempversion.txt version.txt
6 changes: 5 additions & 1 deletion koboldcpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ if [ -n "$NOAVX2" ]; then
fi

bin/micromamba run -r conda -p conda/envs/linux make -j$(nproc) LLAMA_VULKAN=1 LLAMA_CLBLAST=1 LLAMA_CUBLAS=1 LLAMA_PORTABLE=1 LLAMA_ADD_CONDA_PATHS=1 $LLAMA_NOAVX2_FLAG
if [ $? -ne 0 ]; then
echo "Error: make failed."
exit 1
fi
bin/micromamba run -r conda -p conda/envs/linux chmod +x "./create_ver_file.sh"
bin/micromamba run -r conda -p conda/envs/linux . create_ver_file.sh
bin/micromamba run -r conda -p conda/envs/linux ./create_ver_file.sh

if [[ $1 == "rebuild" ]]; then
echo Rebuild complete, you can now try to launch Koboldcpp.
Expand Down

0 comments on commit fd073fc

Please sign in to comment.