11image : Visual Studio 2017
22environment :
3- RUSTFLAGS : -Zunstable-options - Ctarget-feature=+crt-static
3+ RUSTFLAGS : -Ctarget-feature=+crt-static
44 matrix :
5+ - TARGET : x86_64-pc-windows-msvc
6+ ALLOW_PR : 1
7+ - TARGET : i686-pc-windows-msvc
58 # FIXME
69 # - TARGET: i686-pc-windows-msvc
710 # BUILD_MSI: 1
811 - TARGET : i686-pc-windows-gnu
912 MINGW_DIR : mingw32
1013 - TARGET : x86_64-pc-windows-gnu
1114 MINGW_DIR : mingw64
12- - TARGET : i686-pc-windows-msvc
13- - TARGET : x86_64-pc-windows-msvc
1415 access_token :
1516 secure : q8Wqx0brgfpOYFQqWauvucE2h0o1WYb41a3gKaCKV9QiE4eTz6qLNlqyC3mdsp4Q
1617branches :
@@ -20,6 +21,9 @@ branches:
2021 - auto
2122
2223install :
24+ # If this is a PR and we're not allowed to test PRs, skip the whole build
25+ - if defined APPVEYOR_PULL_REQUEST_NUMBER if NOT defined ALLOW_PR appveyor exit
26+
2327 # Install MSYS2 and MINGW (32-bit & 64-bit)
2428 - ps : |
2529 # Check if MSYS2 was restored from cache
@@ -28,12 +32,12 @@ install:
2832 # Download and install MINGW (32-bit)
2933 Write-Host "Installing MinGW (32-bit)..." -ForegroundColor Cyan
3034 Write-Host "Downloading installation package..."
31- appveyor DownloadFile https://s3.amazonaws.com/rust-lang-ci/i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z -FileName mingw.7z
35+ appveyor-retry appveyor DownloadFile https://s3.amazonaws.com/rust-lang-ci/i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z -FileName mingw.7z
3236 } elseif($env:MINGW_DIR -eq "mingw64") {
3337 # Download and install MINGW (64-bit)
3438 Write-Host "Installing MinGW (64-bit)..." -ForegroundColor Cyan
3539 Write-Host "Downloading installation package..."
36- appveyor DownloadFile https://s3.amazonaws.com/rust-lang-ci/x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z -FileName mingw.7z
40+ appveyor-retry appveyor DownloadFile https://s3.amazonaws.com/rust-lang-ci/x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z -FileName mingw.7z
3741 }
3842 Write-Host "Extracting installation package..."
3943 7z x -y mingw.7z -oC:\msys64 | Out-Null
@@ -43,8 +47,8 @@ install:
4347 }
4448
4549 # Install rust, x86_64-pc-windows-msvc host
46- - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
47- - rustup-init.exe -y --default-toolchain=nightly-2017-04-25- x86_64-pc-windows-msvc
50+ - appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
51+ - rustup-init.exe -y --default-host= x86_64-pc-windows-msvc
4852 - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
4953
5054 # Install the target we're compiling for
0 commit comments