Skip to content

Commit 59e357a

Browse files
committed
if not needed
1 parent 49c9870 commit 59e357a

File tree

1 file changed

+29
-31
lines changed

1 file changed

+29
-31
lines changed

.github/scripts/windows/build_task.bat

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

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
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
3411
if %errorlevel% neq 0 exit /b 3
35-
rmdir /s /q c:\OpenSSL-Win64 >NUL 2>NUL
12+
rmdir /s /q C:\cygwin64 >NUL 2>NUL
3613
if %errorlevel% neq 0 exit /b 3
37-
rmdir /s /q c:\OpenSSL-v11-Win32 >NUL 2>NUL
14+
rmdir /s /q C:\mingw >NUL 2>NUL
3815
if %errorlevel% neq 0 exit /b 3
39-
rmdir /s /q c:\OpenSSL-v11-Win64 >NUL 2>NUL
16+
rmdir /s /q C:\mingw-w64 >NUL 2>NUL
4017
if %errorlevel% neq 0 exit /b 3
41-
del /f /q C:\Windows\System32\libcrypto-1_1-x64.dll >NUL 2>NUL
18+
rmdir /s /q C:\msys64 >NUL 2>NUL
4219
if %errorlevel% neq 0 exit /b 3
43-
del /f /q C:\Windows\System32\libssl-1_1-x64.dll >NUL 2>NUL
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
4430
if %errorlevel% neq 0 exit /b 3
4531
)
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
4644

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

0 commit comments

Comments
 (0)