Skip to content

Commit

Permalink
fix ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhaode committed Dec 4, 2023
1 parent 2af82db commit e649256
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:
cd workspace
unzip package.zip
cd package
./script/model_test.sh ${{ matrix.model }}
./script/model_test.sh ${{ matrix.model }}
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:
cd workspace
unzip package.zip
cd package
./script/model_test.sh ${{ matrix.model }}
./script/model_test.sh ${{ matrix.model }} prompt.txt
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ jobs:
echo ${{ matrix.model }}
./script/download_model.ps1 ${{ matrix.model }}
cd build
.\Release\cli_demo -m ..\${{ matrix.model }}
.\Release\cli_demo ..\${{ matrix.model }} prompt.txt
Exit 0
4 changes: 2 additions & 2 deletions script/model_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ model_test() {
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
# macos
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:.
./cli_demo -m ../$1
./cli_demo -m ../$1 prompt.txt
cd ..
}

Expand All @@ -24,4 +24,4 @@ if [ $1 -eq 'all' ]; then
test_all
else
model_test $1
fi
fi
3 changes: 2 additions & 1 deletion script/package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ cd ..
# copy file
echo 'copy files ...'
cp -r script $package_path
cp resource\prompt.txt $package_path\build
cp -r build\Release $package_path\build
cp libs\*.dll $package_path\build\Release
cp libs\*.lib $package_path\build\Release
cp libs\*.lib $package_path\build\Release
3 changes: 2 additions & 1 deletion script/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ cd ..
echo 'copy files ...'
cp -r script $package_path
cp build/*_demo $package_path/build
cp resource/prompt.txt $package_path/build
# linux
cp libs/*.so build/*.so $package_path/build 2> /dev/null || :
# macos
cp libs/*.dylib build/*.dylib $package_path/build 2> /dev/null || :
cp libs/*.dylib build/*.dylib $package_path/build 2> /dev/null || :

0 comments on commit e649256

Please sign in to comment.