Skip to content

Commit e879aa4

Browse files
committed
Auto merge of #39852 - alexcrichton:appveyor-separate-dist, r=brson
appveyor: Move MSVC dist builds to their own builder In the long run we want to separate out the dist builders from the test builders. This provides us leeway to expand the dist builders with more tools (e.g. Cargo and the RLS) without impacting cycle times. Currently the Travis dist builders double-up the platforms they provide builds for, so I figured we could try that out for MSVC as well. This commit adds a new AppVeyor builder which runs a dist for all the MSVC targets: * x86_64-pc-windows-msvc * i686-pc-windows-msvc * i586-pc-windows-msvc If this takes too long and/or times out we'll need to split this up. In any case we're going to need more capacity from AppVeyor no matter what becaue the two pc-windows-gnu targets can't cross compile so we need at least 2 more builders no matter what.
2 parents 16c94cd + 5286c68 commit e879aa4

File tree

1 file changed

+38
-13
lines changed

1 file changed

+38
-13
lines changed

appveyor.yml

+38-13
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,15 @@ environment:
55
secure: 1UkmbiDd15tWtYbMm5O2Uqm0b0Ur8v1MoSlydxl4ojcroPeerRMlUges0l57py8c
66
SCCACHE_DIGEST: f808afabb4a4eb1d7112bcb3fa6be03b61e93412890c88e177c667eb37f46353d7ec294e559b16f9f4b5e894f2185fe7670a0df15fd064889ecbd80f0c34166c
77
matrix:
8-
# 32/64 bit MSVC
8+
# 32/64 bit MSVC tests
99
- MSYS_BITS: 64
10-
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-extended
11-
SCRIPT: python x.py test && python x.py dist
12-
DEPLOY: 1
10+
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc
11+
SCRIPT: python x.py test
1312
- MSYS_BITS: 32
14-
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-msvc --target=i586-pc-windows-msvc --enable-extended
15-
SCRIPT: python x.py test --host i686-pc-windows-msvc --target i686-pc-windows-msvc && python x.py dist
16-
DEPLOY: 1
13+
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-msvc --target=i586-pc-windows-msvc
14+
SCRIPT: python x.py test --host i686-pc-windows-msvc --target i686-pc-windows-msvc
1715

18-
# MSVC cargotest
16+
# MSVC aux tests
1917
- MSYS_BITS: 64
2018
RUST_CHECK_TARGET: check-aux
2119
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc
@@ -44,16 +42,40 @@ environment:
4442
# And as a final point of note, the 32-bit MinGW build using the makefiles do
4543
# *not* use debug assertions and llvm assertions. This is because they take
4644
# too long on appveyor and this is tested by rustbuild below.
45+
- MSYS_BITS: 32
46+
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu
47+
SCRIPT: python x.py test
48+
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci
49+
MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
50+
MINGW_DIR: mingw32
51+
- MSYS_BITS: 64
52+
SCRIPT: python x.py test
53+
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu
54+
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci
55+
MINGW_ARCHIVE: x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
56+
MINGW_DIR: mingw64
57+
58+
# 32/64 bit MSVC and GNU deployment
59+
- RUST_CONFIGURE_ARGS: >
60+
--build=x86_64-pc-windows-msvc
61+
--enable-extended
62+
SCRIPT: python x.py dist
63+
DEPLOY: 1
64+
- RUST_CONFIGURE_ARGS: >
65+
--build=i686-pc-windows-msvc
66+
--target=i586-pc-windows-msvc
67+
--enable-extended
68+
SCRIPT: python x.py dist
69+
DEPLOY: 1
4770
- MSYS_BITS: 32
4871
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu --enable-extended
49-
SCRIPT: python x.py test && python x.py dist
72+
SCRIPT: python x.py dist
5073
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci
5174
MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
5275
MINGW_DIR: mingw32
5376
DEPLOY: 1
54-
5577
- MSYS_BITS: 64
56-
SCRIPT: python x.py test && python x.py dist
78+
SCRIPT: python x.py dist
5779
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu --enable-extended
5880
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci
5981
MINGW_ARCHIVE: x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
@@ -83,12 +105,15 @@ install:
83105
# file exists in there (which it doesn't by default).
84106
- if defined MINGW_URL appveyor DownloadFile %MINGW_URL%/%MINGW_ARCHIVE%
85107
- if defined MINGW_URL 7z x -y %MINGW_ARCHIVE% > nul
86-
- if defined MINGW_URL set PATH=C:\Python27;%CD%\%MINGW_DIR%\bin;C:\msys64\usr\bin;%PATH%
87-
- if defined MINGW_URL copy C:\Python27\python.exe C:\Python27\python2.7.exe
108+
- if defined MINGW_URL set PATH=%CD%\%MINGW_DIR%\bin;C:\msys64\usr\bin;%PATH%
88109

89110
# Otherwise pull in the MinGW installed on appveyor
90111
- if NOT defined MINGW_URL set PATH=C:\msys64\mingw%MSYS_BITS%\bin;C:\msys64\usr\bin;%PATH%
91112

113+
# Prefer the "native" Python as LLVM has trouble building with MSYS sometimes
114+
- copy C:\Python27\python.exe C:\Python27\python2.7.exe
115+
- set PATH=C:\Python27;%PATH%
116+
92117
# Download and install sccache
93118
- appveyor DownloadFile https://api.pub.build.mozilla.org/tooltool/sha512/%SCCACHE_DIGEST%
94119
- mv %SCCACHE_DIGEST% sccache.tar.bz2

0 commit comments

Comments
 (0)