Skip to content

Commit 69dcf84

Browse files
committed
try to fix failing build
1 parent 9f539d1 commit 69dcf84

File tree

1 file changed

+31
-29
lines changed

1 file changed

+31
-29
lines changed

.github/scripts/windows/build_task.bat

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,44 @@ if /i "%APPVEYOR%%GITHUB_ACTIONS%" neq "True" (
55
exit /b 3
66
)
77

8-
rem rmdir takes several minutes for large directories, rename instead
9-
if /i "%APPVEYOR%" equ "True" (
10-
rmdir /s /q C:\cygwin >NUL 2>NUL
8+
if /i "%APPVEYOR%%GITHUB_ACTIONS%" equ "True" (
9+
rem rmdir takes several minutes for large directories, rename instead
10+
if /i "%APPVEYOR%" equ "True" (
11+
rmdir /s /q C:\cygwin >NUL 2>NUL
12+
if %errorlevel% neq 0 exit /b 3
13+
rmdir /s /q C:\cygwin64 >NUL 2>NUL
14+
if %errorlevel% neq 0 exit /b 3
15+
rmdir /s /q C:\mingw >NUL 2>NUL
16+
if %errorlevel% neq 0 exit /b 3
17+
rmdir /s /q C:\mingw-w64 >NUL 2>NUL
18+
if %errorlevel% neq 0 exit /b 3
19+
rmdir /s /q C:\msys64 >NUL 2>NUL
20+
if %errorlevel% neq 0 exit /b 3
21+
) else (
22+
rename C:\cygwin C:\trash-cygwin
23+
if %errorlevel% neq 0 exit /b 3
24+
rename C:\cygwin64 C:\trash-cygwin64
25+
if %errorlevel% neq 0 exit /b 3
26+
rename C:\mingw C:\trash-mingw
27+
if %errorlevel% neq 0 exit /b 3
28+
rename C:\mingw-w64 C:\trash-mingw-w64
29+
if %errorlevel% neq 0 exit /b 3
30+
rename C:\msys64 C:\trash-msys64
31+
if %errorlevel% neq 0 exit /b 3
32+
)
33+
rmdir /s /q c:\OpenSSL-Win32 >NUL 2>NUL
1134
if %errorlevel% neq 0 exit /b 3
12-
rmdir /s /q C:\cygwin64 >NUL 2>NUL
35+
rmdir /s /q c:\OpenSSL-Win64 >NUL 2>NUL
1336
if %errorlevel% neq 0 exit /b 3
14-
rmdir /s /q C:\mingw >NUL 2>NUL
37+
rmdir /s /q c:\OpenSSL-v11-Win32 >NUL 2>NUL
1538
if %errorlevel% neq 0 exit /b 3
16-
rmdir /s /q C:\mingw-w64 >NUL 2>NUL
39+
rmdir /s /q c:\OpenSSL-v11-Win64 >NUL 2>NUL
1740
if %errorlevel% neq 0 exit /b 3
18-
rmdir /s /q C:\msys64 >NUL 2>NUL
41+
del /f /q C:\Windows\System32\libcrypto-1_1-x64.dll >NUL 2>NUL
1942
if %errorlevel% neq 0 exit /b 3
20-
) else (
21-
rename C:\cygwin C:\trash-cygwin
22-
if %errorlevel% neq 0 exit /b 3
23-
rename C:\cygwin64 C:\trash-cygwin64
24-
if %errorlevel% neq 0 exit /b 3
25-
rename C:\mingw C:\trash-mingw
26-
if %errorlevel% neq 0 exit /b 3
27-
rename C:\mingw-w64 C:\trash-mingw-w64
28-
if %errorlevel% neq 0 exit /b 3
29-
rename C:\msys64 C:\trash-msys64
43+
del /f /q C:\Windows\System32\libssl-1_1-x64.dll >NUL 2>NUL
3044
if %errorlevel% neq 0 exit /b 3
3145
)
32-
rmdir /s /q c:\OpenSSL-Win32 >NUL 2>NUL
33-
if %errorlevel% neq 0 exit /b 3
34-
rmdir /s /q c:\OpenSSL-Win64 >NUL 2>NUL
35-
if %errorlevel% neq 0 exit /b 3
36-
rmdir /s /q c:\OpenSSL-v11-Win32 >NUL 2>NUL
37-
if %errorlevel% neq 0 exit /b 3
38-
rmdir /s /q c:\OpenSSL-v11-Win64 >NUL 2>NUL
39-
if %errorlevel% neq 0 exit /b 3
40-
del /f /q C:\Windows\System32\libcrypto-1_1-x64.dll >NUL 2>NUL
41-
if %errorlevel% neq 0 exit /b 3
42-
del /f /q C:\Windows\System32\libssl-1_1-x64.dll >NUL 2>NUL
43-
if %errorlevel% neq 0 exit /b 3
4446

4547
if /i "%APPVEYOR_REPO_BRANCH:~0,4%" equ "php-" (
4648
set BRANCH=%APPVEYOR_REPO_BRANCH:~4,3%

0 commit comments

Comments
 (0)