Skip to content

Commit 7f322c0

Browse files
committed
% change test_task.bat
1 parent b06a58d commit 7f322c0

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/scripts/windows/test_task.bat

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,28 @@ if exist "%PHP_BUILD_DIR%\php.exe" (
2323

2424
echo.
2525
echo Copying deps DLLs like official PHP does...
26-
set DEPS_DIR=C:\build-cache\deps-master-vs17-x64
26+
27+
rem Find target branch like build_task.bat does
28+
call %~dp0find-target-branch.bat
29+
set DEPS_DIR=%PHP_BUILD_CACHE_BASE_DIR%\deps-%BRANCH%-%PHP_SDK_VS%-%PHP_SDK_ARCH%
30+
31+
echo Target branch: %BRANCH%
32+
echo PHP SDK VS: %PHP_SDK_VS%
33+
echo PHP SDK ARCH: %PHP_SDK_ARCH%
34+
echo DEPS_DIR: %DEPS_DIR%
2735

2836
echo Checking if DEPS_DIR exists: %DEPS_DIR%
2937
if exist "%DEPS_DIR%\bin" (
3038
echo FOUND: %DEPS_DIR%\bin
3139
dir "%DEPS_DIR%\bin\*.dll" /b
3240
) else (
3341
echo ERROR: %DEPS_DIR%\bin not found!
42+
echo Available directories in build cache:
43+
if exist "%PHP_BUILD_CACHE_BASE_DIR%" (
44+
dir "%PHP_BUILD_CACHE_BASE_DIR%" /b
45+
) else (
46+
echo Build cache directory doesn't exist: %PHP_BUILD_CACHE_BASE_DIR%
47+
)
3448
exit /b 1
3549
)
3650

0 commit comments

Comments
 (0)