4
4
# # Operating System (VM environment) ##
5
5
6
6
# Rust needs at least Visual Studio 2013 Appveyor OS for MSVC targets.
7
- os : Visual Studio 2015
7
+ os : Visual Studio 2017
8
8
9
9
# # Build Matrix ##
10
10
environment :
11
11
matrix :
12
-
13
12
# ## MSVC Targets ###
14
- # Stable 64-bit MSVC
15
- # - channel: stable
16
- # toolchain: stable-x86_64-pc-windows-msvc
17
- # target: x86_64-pc-windows-msvc
18
- # target_env: msvc
19
- # mingw_subdir: mingw64
20
- # mingw_target: x86_64-w64-mingw32
21
- # mingw_package_prefix: mingw-w64-x86_64
13
+ # Stable 64-bit MSVC
14
+ - target : x86_64-pc-windows-msvc
15
+ channel : stable
16
+ toolchain : stable-x86_64-pc-windows-msvc
17
+ target_env : msvc
22
18
# Stable 32-bit MSVC
23
19
# - channel: stable
24
20
# toolchain: stable-i686-pc-windows-msvc
@@ -29,10 +25,10 @@ environment:
29
25
# mingw_package_prefix: mingw-w64-i686
30
26
31
27
# ## GNU Targets ###
32
- # Stable 64-bit GNU
33
- - channel : stable
28
+ # Stable 64-bit GNU
29
+ - target : x86_64-pc-windows-gnu
30
+ channel : stable
34
31
toolchain : stable-x86_64-pc-windows-msvc
35
- target : x86_64-pc-windows-gnu
36
32
target_env : gnu
37
33
mingw_subdir : mingw64
38
34
mingw_target : x86_64-w64-mingw32
@@ -72,10 +68,16 @@ install:
72
68
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
73
69
- rustup-init -yv --default-toolchain %channel%-msvc --default-host %target%
74
70
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
75
- - set PATH=C:\msys64\%mingw_subdir%\bin;C:\msys64\usr\bin;%PATH%
71
+ - if "%target_env%" == "gnu" set PATH=C:\msys64\%mingw_subdir%\bin;C:\msys64\usr\bin;%PATH%
76
72
- rustup target add %target%
77
73
- rustup component add rust-src
78
- - pacman -S --noconfirm "%mingw_package_prefix%-fontconfig" "%mingw_package_prefix%-freetype" "%mingw_package_prefix%-icu"
74
+ - if "%target_env%" == "gnu" pacman -S --noconfirm "%mingw_package_prefix%-fontconfig" "%mingw_package_prefix%-freetype" "%mingw_package_prefix%-icu"
75
+ - if "%target_env%" == "msvc" git clone https://github.com/microsoft/vcpkg %USERPROFILE%\vcpkg
76
+ - if "%target_env%" == "msvc" call %USERPROFILE%\vcpkg\bootstrap-vcpkg.bat
77
+ - if "%target_env%" == "msvc" %USERPROFILE%\vcpkg\vcpkg install --triplet x64-windows-static fontconfig freetype harfbuzz[icu,graphite2]
78
+ - if "%target_env%" == "msvc" set VCPKG_ROOT=%USERPROFILE%\vcpkg
79
+ - if "%target_env%" == "msvc" set TECTONIC_VCPKG=1
80
+ - if "%target_env%" == "msvc" set RUSTFLAGS=-Ctarget-feature=+crt-static
79
81
- rustc -vV
80
82
- cargo -vV
81
83
0 commit comments