Skip to content

Commit 1db9e93

Browse files
committed
fix workflow
1 parent 3410497 commit 1db9e93

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/windows-build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,12 @@ jobs:
127127
cat > compile_test.bat << EOF
128128
@echo off
129129
call "$VCVARS_WIN_PATH"
130-
cl /I..\\..\\include test_shared.cpp $LIB_NAME /Fe:test_shared.exe
130+
set "INCLUDE_DIR=%GITHUB_WORKSPACE%\\include"
131+
if not exist "%INCLUDE_DIR%" (
132+
echo Include directory not found: %INCLUDE_DIR%
133+
exit /b 1
134+
)
135+
cl /I"%INCLUDE_DIR%" test_shared.cpp $LIB_NAME /Fe:test_shared.exe
131136
EOF
132137
133138
# Execute the batch file

0 commit comments

Comments
 (0)