Skip to content

Commit b431f67

Browse files
committed
fix appveyor
1 parent 9375bce commit b431f67

File tree

1 file changed

+23
-15
lines changed

1 file changed

+23
-15
lines changed

appveyor/build_task.bat

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,29 @@
22

33
if /i "%APPVEYOR%%GITHUB_ACTIONS%" equ "True" (
44
rem rmdir takes several minutes for large directories, rename instead
5-
rem rmdir /s /q C:\cygwin >NUL 2>NUL
6-
rename C:\cygwin C:\trash-cygwin
7-
if %errorlevel% neq 0 exit /b 3
8-
rem rmdir /s /q C:\cygwin64 >NUL 2>NUL
9-
rename C:\cygwin64 C:\trash-cygwin64
10-
if %errorlevel% neq 0 exit /b 3
11-
rem rmdir /s /q C:\mingw >NUL 2>NUL
12-
rename C:\mingw C:\trash-mingw
13-
if %errorlevel% neq 0 exit /b 3
14-
rem rmdir /s /q C:\mingw-w64 >NUL 2>NUL
15-
rename C:\mingw-w64 C:\trash-mingw-w64
16-
if %errorlevel% neq 0 exit /b 3
17-
rem rmdir /s /q C:\msys64 >NUL 2>NUL
18-
rename C:\msys64 C:\trash-msys64
19-
if %errorlevel% neq 0 exit /b 3
5+
if /i "%APPVEYOR%" equ "True" (
6+
rmdir /s /q C:\cygwin >NUL 2>NUL
7+
if %errorlevel% neq 0 exit /b 3
8+
rmdir /s /q C:\cygwin64 >NUL 2>NUL
9+
if %errorlevel% neq 0 exit /b 3
10+
rmdir /s /q C:\mingw >NUL 2>NUL
11+
if %errorlevel% neq 0 exit /b 3
12+
rmdir /s /q C:\mingw-w64 >NUL 2>NUL
13+
if %errorlevel% neq 0 exit /b 3
14+
rmdir /s /q C:\msys64 >NUL 2>NUL
15+
if %errorlevel% neq 0 exit /b 3
16+
) else (
17+
rename C:\cygwin C:\trash-cygwin
18+
if %errorlevel% neq 0 exit /b 3
19+
rename C:\cygwin64 C:\trash-cygwin64
20+
if %errorlevel% neq 0 exit /b 3
21+
rename C:\mingw C:\trash-mingw
22+
if %errorlevel% neq 0 exit /b 3
23+
rename C:\mingw-w64 C:\trash-mingw-w64
24+
if %errorlevel% neq 0 exit /b 3
25+
rename C:\msys64 C:\trash-msys64
26+
if %errorlevel% neq 0 exit /b 3
27+
)
2028
rmdir /s /q c:\OpenSSL-Win32 >NUL 2>NUL
2129
if %errorlevel% neq 0 exit /b 3
2230
rmdir /s /q c:\OpenSSL-Win64 >NUL 2>NUL

0 commit comments

Comments
 (0)