Skip to content

Commit 567e4fd

Browse files
Runner for all apltform
1 parent ddab390 commit 567e4fd

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/dotnet-tests.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,29 +89,27 @@ jobs:
8989
DEST_PATH="backend/CaseConversionAPI/tests/DotNetTests/bin/Release/net8.0/"
9090
mkdir -p "$DEST_PATH"
9191
92-
# Locate the library file based on platform
92+
# Locate the library file based on platform and the 'lib' prefix observed in logs
9393
if [ "${{ runner.os }}" == "Linux" ]; then
9494
LIB_FILE=$(find backend/CaseConversionAPI/CppLib/build -name "libProcessStringDLL.so" | head -n 1)
9595
elif [ "${{ runner.os }}" == "macOS" ]; then
9696
LIB_FILE=$(find backend/CaseConversionAPI/CppLib/build -name "libProcessStringDLL.dylib" | head -n 1)
9797
elif [ "${{ runner.os }}" == "Windows" ]; then
98-
# Based on your logs, the file is in /build/Release/ProcessStringDLL.dll
99-
LIB_FILE=$(find backend/CaseConversionAPI/CppLib/build -name "ProcessStringDLL.dll" | head -n 1)
98+
# Logs show Windows is producing 'libProcessStringDLL.dll'
99+
LIB_FILE=$(find backend/CaseConversionAPI/CppLib/build -name "libProcessStringDLL.dll" | head -n 1)
100100
fi
101101
102102
if [ -z "$LIB_FILE" ]; then
103103
echo "[ERROR] Native library not found for ${{ runner.os }}"
104-
echo "Listing build directory for debugging:"
105-
ls -R backend/CaseConversionAPI/CppLib/build
104+
# Final debug fallback to see the exact filename if it still fails
105+
find backend/CaseConversionAPI/CppLib/build -name "*.dll" -o -name "*.so" -o -name "*.dylib"
106106
exit 1
107107
fi
108108
109109
echo "[INFO] Found library at: $LIB_FILE"
110-
echo "[INFO] Injecting into: $DEST_PATH"
111-
112110
cp "$LIB_FILE" "$DEST_PATH"
113111
114-
# Secondary copy for local P/Invoke resolution fallback (test project root)
112+
# Ensure the .NET project directory also has a copy for local runner resolution
115113
cp "$LIB_FILE" "backend/CaseConversionAPI/tests/DotNetTests/"
116114
117115
# ======================================================

0 commit comments

Comments
 (0)