@@ -89,27 +89,29 @@ jobs:
8989 DEST_PATH="backend/CaseConversionAPI/tests/DotNetTests/bin/Release/net8.0/"
9090 mkdir -p "$DEST_PATH"
9191
92- # Search recursively from the build root for the platform-specific binary
92+ # Locate the library file based on platform
9393 if [ "${{ runner.os }}" == "Linux" ]; then
94- LIB_FILE=$(find backend/CaseConversionAPI/CppLib/build -type f - name "libProcessStringDLL.so" | head -n 1)
94+ LIB_FILE=$(find backend/CaseConversionAPI/CppLib/build -name "libProcessStringDLL.so" | head -n 1)
9595 elif [ "${{ runner.os }}" == "macOS" ]; then
96- LIB_FILE=$(find backend/CaseConversionAPI/CppLib/build -type f - name "libProcessStringDLL.dylib" | head -n 1)
96+ LIB_FILE=$(find backend/CaseConversionAPI/CppLib/build -name "libProcessStringDLL.dylib" | head -n 1)
9797 elif [ "${{ runner.os }}" == "Windows" ]; then
98- # MSVC often nests binaries in build/Release/ or build/bin/ Release
99- LIB_FILE=$(find backend/CaseConversionAPI/CppLib/build -type f - name "ProcessStringDLL.dll" | head -n 1)
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)
100100 fi
101101
102102 if [ -z "$LIB_FILE" ]; then
103103 echo "[ERROR] Native library not found for ${{ runner.os }}"
104- # Debug: List the build directory to see where the file actually is
104+ echo "Listing build directory for debugging:"
105105 ls -R backend/CaseConversionAPI/CppLib/build
106106 exit 1
107107 fi
108108
109- echo "[INFO] Injecting $LIB_FILE into $DEST_PATH"
109+ echo "[INFO] Found library at: $LIB_FILE"
110+ echo "[INFO] Injecting into: $DEST_PATH"
111+
110112 cp "$LIB_FILE" "$DEST_PATH"
111113
112- # Secondary copy for local P/Invoke resolution fallback
114+ # Secondary copy for local P/Invoke resolution fallback (test project root)
113115 cp "$LIB_FILE" "backend/CaseConversionAPI/tests/DotNetTests/"
114116
115117 # ======================================================
0 commit comments