Skip to content

Commit 48447aa

Browse files
feat(ci): fix
1 parent d5ec3d4 commit 48447aa

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

scripts/build-llama.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,14 @@ elif [[ "$OSTYPE" == "msys"* ]] || [[ "$OSTYPE" == "cygwin"* ]] || [[ "$OSTYPE"
132132
cd -
133133
fi
134134

135-
# Copy DLL and import library to build/Release/ for node-gyp
135+
# Copy DLLs and import library to build/Release/ for node-gyp
136136
RELEASE_DIR="build/Release"
137137
mkdir -p "$RELEASE_DIR"
138-
cp "$LLAMA_DIR/build-windows/bin/Release/llama.dll" "$RELEASE_DIR/llama.dll"
139-
echo "✓ Copied llama.dll to $RELEASE_DIR/"
138+
139+
# Copy all DLLs (llama.dll depends on ggml*.dll)
140+
cp "$LLAMA_DIR/build-windows/bin/Release/"*.dll "$RELEASE_DIR/"
141+
echo "✓ Copied DLLs to $RELEASE_DIR/:"
142+
ls -1 "$RELEASE_DIR/"*.dll | sed 's/.*\// - /'
140143

141144
# Copy import library (.lib) - needed for linking
142145
# CMake may place it in lib/, bin/, or src/ depending on configuration

scripts/copy-dylib.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
4343
fi
4444
elif [[ "$OSTYPE" == "msys"* ]] || [[ "$OSTYPE" == "cygwin"* ]] || [[ "$OSTYPE" == "win32"* ]]; then
4545
if [ -f "$LLAMA_DIR/build-windows/bin/Release/llama.dll" ]; then
46-
cp "$LLAMA_DIR/build-windows/bin/Release/llama.dll" build/Release/
47-
echo "✓ Copied llama.dll to build/Release/"
46+
# Copy all DLLs (llama.dll depends on ggml*.dll)
47+
cp "$LLAMA_DIR/build-windows/bin/Release/"*.dll build/Release/
48+
echo "✓ Copied DLLs to build/Release/:"
49+
ls -1 build/Release/*.dll | sed 's/.*\// - /'
4850

4951
# Copy import library (.lib) - needed for linking
5052
# CMake may place it in lib/, bin/, or src/ depending on configuration

0 commit comments

Comments
 (0)