Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 705f36d

Browse files
1480c1tianjunwork
authored andcommitted
Appveyor: Fix appveyor builds (#354)
Appveyor included msys2 in their 2019 images. Signed-off-by: Christopher Degawa <[email protected]>
1 parent 13050b7 commit 705f36d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ environment:
1111
CC: gcc
1212
install:
1313
- '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64'
14-
- ps: (New-Object System.Net.WebClient).DownloadFile('http://repo.msys2.org/distrib/msys2-x86_64-latest.tar.xz', "$PWD\msys2-base.tar.xz")
15-
- 7z x -aoa msys2-base.tar.xz
16-
- 7z x -aoa msys2-base.tar -oC:\
1714
- set "PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%"
1815
- set MSYSTEM=MINGW64
1916
- set MSYS2_PATH_TYPE=inherit
2017
- bash -lc 'exit'
18+
- pacman -Syyuu --ask=20 --noconfirm --noprogressbar --needed
2119
- pacman -Sy --ask=20 --noconfirm --noprogressbar --needed mingw-w64-x86_64-yasm mingw-w64-x86_64-ccache mingw-w64-x86_64-cmake mingw-w64-x86_64-gcc mingw-w64-x86_64-ninja
2220
- cd Build
2321
- ps: |
@@ -38,6 +36,7 @@ install:
3836
cmake .. -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE="$configuration"
3937
}
4038
- ccache -s
39+
- pacman -Sc --noconfirm
4140

4241
for:
4342
- matrix:
@@ -67,6 +66,7 @@ test_script:
6766

6867
cache:
6968
- 'C:\Users\appveyor\AppData\Roaming\.ccache'
69+
- 'C:\msys64\var\cache\pacman\pkg'
7070

7171
artifacts:
7272
- path: bin\Release\*.*

0 commit comments

Comments
 (0)