@@ -4,12 +4,9 @@ environment:
4
4
RUST_BACKTRACE : 1
5
5
matrix :
6
6
- TARGET : x86_64-pc-windows-msvc
7
+ NO_ADD : 1
7
8
ALLOW_PR : 1
8
9
- TARGET : i686-pc-windows-msvc
9
- - TARGET : x86_64-pc-windows-gnu
10
- MINGW_DIR : mingw64
11
- - TARGET : i686-pc-windows-gnu
12
- MINGW_DIR : mingw32
13
10
access_token :
14
11
secure : q8Wqx0brgfpOYFQqWauvucE2h0o1WYb41a3gKaCKV9QiE4eTz6qLNlqyC3mdsp4Q
15
12
branches :
@@ -25,41 +22,14 @@ install:
25
22
- if defined APPVEYOR_PULL_REQUEST_NUMBER if NOT defined ALLOW_PR appveyor exit
26
23
- if "%APPVEYOR_REPO_BRANCH%" == "master" if NOT defined ALLOW_PR appveyor exit
27
24
28
- # Install MSYS2 and MINGW (32-bit & 64-bit)
29
- - ps : |
30
- # Check if MSYS2 was restored from cache
31
- if($env:MINGW_DIR) {
32
- if($env:MINGW_DIR -eq "mingw32") {
33
- # Download and install MINGW (32-bit)
34
- Write-Host "Installing MinGW (32-bit)..." -ForegroundColor Cyan
35
- Write-Host "Downloading installation package..."
36
- appveyor-retry appveyor DownloadFile https://rust-lang-ci.s3.amazonaws.com/i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z -FileName mingw.7z
37
- } elseif($env:MINGW_DIR -eq "mingw64") {
38
- # Download and install MINGW (64-bit)
39
- Write-Host "Installing MinGW (64-bit)..." -ForegroundColor Cyan
40
- Write-Host "Downloading installation package..."
41
- appveyor-retry appveyor DownloadFile https://rust-lang-ci.s3.amazonaws.com/x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z -FileName mingw.7z
42
- }
43
- Write-Host "Extracting installation package..."
44
- 7z x -y mingw.7z -oC:\msys64 | Out-Null
45
- del mingw.7z
46
- } else {
47
- Write-Host "MSYS2 not required" -ForegroundColor Green
48
- }
49
-
50
25
# Install rust, x86_64-pc-windows-msvc host
51
26
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
52
27
- rustup-init.exe -y --default-host=x86_64-pc-windows-msvc
53
28
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
54
29
- del rustup-init.exe
55
30
56
31
# Install the target we're compiling for
57
- - if NOT "%TARGET%" == "x86_64-pc-windows-msvc" rustup target add %TARGET%
58
-
59
- # add mingw to PATH if necessary
60
- - if defined MINGW_DIR set PATH=C:\msys64\%MINGW_DIR%\bin;C:\msys64\usr\bin;%PATH%
61
- # And if mingw, re-put appveyor's git in place
62
- - if defined MINGW_DIR set PATH=C:\Program Files\Git\cmd;%PATH%
32
+ - if NOT defined NO_ADD rustup target add %TARGET%
63
33
64
34
# let's see what we got
65
35
- where gcc rustc cargo
@@ -73,10 +43,6 @@ test_script:
73
43
- cargo run --release --target %TARGET% --locked -- --dump-testament
74
44
- cargo test --release --target %TARGET%
75
45
76
- notifications :
77
- - provider : Webhook
78
- url : https://webhooks.gitter.im/e/9907ad94eb7a5ff291c3
79
-
80
46
after_test :
81
47
- powershell -File ci/prepare-deploy-appveyor.ps1
82
48
0 commit comments