Skip to content

Commit c359680

Browse files
committed
fix workflow2
1 parent 1db9e93 commit c359680

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/windows-build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,15 @@ jobs:
138138
# Execute the batch file
139139
cmd //c compile_test.bat
140140
141-
# Copy DLL to current directory and run
142-
cp "$DLL_NAME" .
141+
# Ensure DLL is available beside the test executable
142+
if [ ! -f "./$DLL_NAME" ]; then
143+
DLL_PATH=$(find .. -name "$DLL_NAME" -print -quit)
144+
if [ -z "$DLL_PATH" ]; then
145+
echo "✗ Windows shared library $DLL_NAME not found for runtime"
146+
exit 1
147+
fi
148+
cp "$DLL_PATH" .
149+
fi
143150
./test_shared.exe
144151
echo "✓ Windows shared library linking test passed"
145152
else

0 commit comments

Comments
 (0)