Skip to content

Commit 10bee2e

Browse files
committed
add x86_64-pc-windows-msvc build on appveyor
1 parent 8a48bbc commit 10bee2e

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

.appveyor.yml

+17-15
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,17 @@
44
## Operating System (VM environment) ##
55

66
# Rust needs at least Visual Studio 2013 Appveyor OS for MSVC targets.
7-
os: Visual Studio 2015
7+
os: Visual Studio 2017
88

99
## Build Matrix ##
1010
environment:
1111
matrix:
12-
1312
### 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
2218
# Stable 32-bit MSVC
2319
# - channel: stable
2420
# toolchain: stable-i686-pc-windows-msvc
@@ -29,10 +25,10 @@ environment:
2925
# mingw_package_prefix: mingw-w64-i686
3026

3127
### 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
3431
toolchain: stable-x86_64-pc-windows-msvc
35-
target: x86_64-pc-windows-gnu
3632
target_env: gnu
3733
mingw_subdir: mingw64
3834
mingw_target: x86_64-w64-mingw32
@@ -72,10 +68,16 @@ install:
7268
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
7369
- rustup-init -yv --default-toolchain %channel%-msvc --default-host %target%
7470
- 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%
7672
- rustup target add %target%
7773
- 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
7981
- rustc -vV
8082
- cargo -vV
8183

0 commit comments

Comments
 (0)