Skip to content

Commit 0f34b2b

Browse files
committed
Add crt-static to Windows CI
1 parent efd8b44 commit 0f34b2b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

appveyor.yml renamed to .appveyor.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
environment:
22
matrix:
3+
- TARGET: x86_64-pc-windows-msvc
4+
RUSTFLAGS: -Zunstable-options -Ctarget-feature=+crt-static
35
- TARGET: x86_64-pc-windows-gnu
46
MSYS_BITS: 64
57
- TARGET: i686-pc-windows-gnu
68
MSYS_BITS: 32
79
- TARGET: x86_64-pc-windows-msvc
810
- TARGET: i686-pc-windows-msvc
911
install:
10-
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe"
11-
- rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
12-
- set PATH=%PATH%;C:\Program Files (x86)\Rust\bin
12+
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
13+
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly
14+
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
15+
- if NOT "%TARGET%" == "x86_64-pc-windows-msvc" rustup target add %TARGET%
1316
- if defined MSYS_BITS set PATH=C:\msys64\mingw%MSYS_BITS%\bin;C:\msys64\usr\bin;%PATH%
1417
- rustc -V
1518
- cargo -V

0 commit comments

Comments
 (0)