Skip to content

Commit fdac254

Browse files
committed
[ci] Fix Windows CI build: Include MSVCP140_1.dll
1 parent 02069c1 commit fdac254

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build-ci.yml

+8
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,14 @@ jobs:
599599
copy "C:\Windows\System32\VCRUNTIME140.dll" ${{env.CMAKE_CONFIG}}\
600600
copy "C:\Windows\System32\VCRUNTIME140_1.dll" ${{env.CMAKE_CONFIG}}\
601601
copy "C:\Windows\System32\CONCRT140.dll" ${{env.CMAKE_CONFIG}}\
602+
echo "🔧 Copying MSVCP140_1.dll..."
603+
if (Test-Path "C:\Windows\System32\MSVCP140_1.dll") {
604+
echo "✅ MSVCP140_1.dll is present in System32."
605+
copy "C:\Windows\System32\MSVCP140_1.dll" ${{env.CMAKE_CONFIG}}\
606+
} else {
607+
echo "❌ MSVCP140_1.dll NOT FOUND in System32! This may cause runtime errors."
608+
exit 1 # Fail the build when the file is missing
609+
}
602610
603611
echo "🔧 Copying license file to build directory..."
604612
copy ..\COPYING ${{env.CMAKE_CONFIG}}\LICENSE.txt

0 commit comments

Comments
 (0)