Skip to content

Commit a44774c

Browse files
committed
Auto merge of #66739 - pietroalbini:rollup-2t2pd4a, r=pietroalbini
Rollup of 7 pull requests Successful merges: - #65613 (Preserve whitespace inside one-backtick codeblocks) - #66512 (Add unix::process::CommandExt::arg0) - #66569 (GitHub Actions: preparations, part 1) - #66678 (Remove useless line for error index generation) - #66684 (Drive-by cleanup in region naming) - #66694 (Add some comments to panic runtime) - #66698 (tidy: Remove unused import) Failed merges: r? @ghost
2 parents 91642e3 + 43d7732 commit a44774c

File tree

22 files changed

+251
-289
lines changed

22 files changed

+251
-289
lines changed

src/bootstrap/util.rs

+4
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,17 @@ pub enum CiEnv {
262262
None,
263263
/// The Azure Pipelines environment, for Linux (including Docker), Windows, and macOS builds.
264264
AzurePipelines,
265+
/// The GitHub Actions environment, for Linux (including Docker), Windows and macOS builds.
266+
GitHubActions,
265267
}
266268

267269
impl CiEnv {
268270
/// Obtains the current CI environment.
269271
pub fn current() -> CiEnv {
270272
if env::var("TF_BUILD").ok().map_or(false, |e| &*e == "True") {
271273
CiEnv::AzurePipelines
274+
} else if env::var("GITHUB_ACTIONS").ok().map_or(false, |e| &*e == "true") {
275+
CiEnv::GitHubActions
272276
} else {
273277
CiEnv::None
274278
}

src/ci/azure-pipelines/auto.yml

+35-133
Original file line numberDiff line numberDiff line change
@@ -19,136 +19,46 @@ jobs:
1919
strategy:
2020
matrix:
2121
x86_64-gnu-llvm-6.0:
22-
IMAGE: x86_64-gnu-llvm-6.0
2322
RUST_BACKTRACE: 1
24-
25-
dist-x86_64-linux:
26-
IMAGE: dist-x86_64-linux
27-
DEPLOY: 1
28-
29-
# "alternate" deployments, these are "nightlies" but have LLVM assertions
30-
# turned on, they're deployed to a different location primarily for
31-
# additional testing.
23+
dist-x86_64-linux: {}
3224
dist-x86_64-linux-alt:
3325
IMAGE: dist-x86_64-linux
34-
DEPLOY_ALT: 1
35-
36-
# Linux builders, remaining docker images
37-
arm-android:
38-
IMAGE: arm-android
39-
40-
armhf-gnu:
41-
IMAGE: armhf-gnu
42-
43-
dist-various-1:
44-
IMAGE: dist-various-1
45-
DEPLOY: 1
46-
47-
dist-various-2:
48-
IMAGE: dist-various-2
49-
DEPLOY: 1
50-
51-
dist-aarch64-linux:
52-
IMAGE: dist-aarch64-linux
53-
DEPLOY: 1
54-
55-
dist-android:
56-
IMAGE: dist-android
57-
DEPLOY: 1
58-
59-
dist-arm-linux:
60-
IMAGE: dist-arm-linux
61-
DEPLOY: 1
62-
63-
dist-armhf-linux:
64-
IMAGE: dist-armhf-linux
65-
DEPLOY: 1
66-
67-
dist-armv7-linux:
68-
IMAGE: dist-armv7-linux
69-
DEPLOY: 1
70-
71-
dist-i586-gnu-i586-i686-musl:
72-
IMAGE: dist-i586-gnu-i586-i686-musl
73-
DEPLOY: 1
74-
75-
dist-i686-freebsd:
76-
IMAGE: dist-i686-freebsd
77-
DEPLOY: 1
78-
79-
dist-i686-linux:
80-
IMAGE: dist-i686-linux
81-
DEPLOY: 1
82-
83-
dist-mips-linux:
84-
IMAGE: dist-mips-linux
85-
DEPLOY: 1
86-
87-
dist-mips64-linux:
88-
IMAGE: dist-mips64-linux
89-
DEPLOY: 1
90-
91-
dist-mips64el-linux:
92-
IMAGE: dist-mips64el-linux
93-
DEPLOY: 1
94-
95-
dist-mipsel-linux:
96-
IMAGE: dist-mipsel-linux
97-
DEPLOY: 1
98-
99-
dist-powerpc-linux:
100-
IMAGE: dist-powerpc-linux
101-
DEPLOY: 1
102-
103-
dist-powerpc64-linux:
104-
IMAGE: dist-powerpc64-linux
105-
DEPLOY: 1
106-
107-
dist-powerpc64le-linux:
108-
IMAGE: dist-powerpc64le-linux
109-
DEPLOY: 1
110-
111-
dist-s390x-linux:
112-
IMAGE: dist-s390x-linux
113-
DEPLOY: 1
114-
115-
dist-x86_64-freebsd:
116-
IMAGE: dist-x86_64-freebsd
117-
DEPLOY: 1
118-
119-
dist-x86_64-musl:
120-
IMAGE: dist-x86_64-musl
121-
DEPLOY: 1
122-
123-
dist-x86_64-netbsd:
124-
IMAGE: dist-x86_64-netbsd
125-
DEPLOY: 1
126-
127-
i686-gnu:
128-
IMAGE: i686-gnu
129-
i686-gnu-nopt:
130-
IMAGE: i686-gnu-nopt
131-
test-various:
132-
IMAGE: test-various
133-
wasm32:
134-
IMAGE: wasm32
135-
x86_64-gnu:
136-
IMAGE: x86_64-gnu
137-
x86_64-gnu-full-bootstrap:
138-
IMAGE: x86_64-gnu-full-bootstrap
139-
x86_64-gnu-aux:
140-
IMAGE: x86_64-gnu-aux
26+
arm-android: {}
27+
armhf-gnu: {}
28+
dist-various-1: {}
29+
dist-various-2: {}
30+
dist-aarch64-linux: {}
31+
dist-android: {}
32+
dist-arm-linux: {}
33+
dist-armhf-linux: {}
34+
dist-armv7-linux: {}
35+
dist-i586-gnu-i586-i686-musl: {}
36+
dist-i686-freebsd: {}
37+
dist-i686-linux: {}
38+
dist-mips-linux: {}
39+
dist-mips64-linux: {}
40+
dist-mips64el-linux: {}
41+
dist-mipsel-linux: {}
42+
dist-powerpc-linux: {}
43+
dist-powerpc64-linux: {}
44+
dist-powerpc64le-linux: {}
45+
dist-s390x-linux: {}
46+
dist-x86_64-freebsd: {}
47+
dist-x86_64-musl: {}
48+
dist-x86_64-netbsd: {}
49+
i686-gnu: {}
50+
i686-gnu-nopt: {}
51+
test-various: {}
52+
wasm32: {}
53+
x86_64-gnu: {}
54+
x86_64-gnu-full-bootstrap: {}
55+
x86_64-gnu-aux: {}
14156
x86_64-gnu-tools:
142-
IMAGE: x86_64-gnu-tools
14357
DEPLOY_TOOLSTATES_JSON: toolstates-linux.json
144-
x86_64-gnu-debug:
145-
IMAGE: x86_64-gnu-debug
146-
x86_64-gnu-nopt:
147-
IMAGE: x86_64-gnu-nopt
148-
x86_64-gnu-distcheck:
149-
IMAGE: x86_64-gnu-distcheck
150-
mingw-check:
151-
IMAGE: mingw-check
58+
x86_64-gnu-debug: {}
59+
x86_64-gnu-nopt: {}
60+
x86_64-gnu-distcheck: {}
61+
mingw-check: {}
15262

15363
- job: macOS
15464
timeoutInMinutes: 600
@@ -176,7 +86,6 @@ jobs:
17686
dist-x86_64-apple:
17787
SCRIPT: ./x.py dist
17888
RUST_CONFIGURE_ARGS: --target=aarch64-apple-ios,armv7-apple-ios,armv7s-apple-ios,i386-apple-ios,x86_64-apple-ios --enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc
179-
DEPLOY: 1
18089
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
18190
MACOSX_DEPLOYMENT_TARGET: 10.7
18291
NO_LLVM_ASSERTIONS: 1
@@ -186,7 +95,6 @@ jobs:
18695
dist-x86_64-apple-alt:
18796
SCRIPT: ./x.py dist
18897
RUST_CONFIGURE_ARGS: --enable-extended --enable-profiler --set rust.jemalloc
189-
DEPLOY_ALT: 1
19098
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
19199
MACOSX_DEPLOYMENT_TARGET: 10.7
192100
NO_LLVM_ASSERTIONS: 1
@@ -204,7 +112,6 @@ jobs:
204112
dist-i686-apple:
205113
SCRIPT: ./x.py dist
206114
RUST_CONFIGURE_ARGS: --build=i686-apple-darwin --enable-full-tools --enable-profiler --set rust.jemalloc
207-
DEPLOY: 1
208115
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
209116
MACOSX_DEPLOYMENT_TARGET: 10.7
210117
NO_LLVM_ASSERTIONS: 1
@@ -304,7 +211,6 @@ jobs:
304211
--enable-profiler
305212
SCRIPT: python x.py dist
306213
DIST_REQUIRE_ALL_TOOLS: 1
307-
DEPLOY: 1
308214
dist-i686-msvc:
309215
RUST_CONFIGURE_ARGS: >-
310216
--build=i686-pc-windows-msvc
@@ -313,22 +219,18 @@ jobs:
313219
--enable-profiler
314220
SCRIPT: python x.py dist
315221
DIST_REQUIRE_ALL_TOOLS: 1
316-
DEPLOY: 1
317222
dist-i686-mingw:
318223
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu --enable-full-tools --enable-profiler
319224
SCRIPT: python x.py dist
320225
CUSTOM_MINGW: 1
321226
DIST_REQUIRE_ALL_TOOLS: 1
322-
DEPLOY: 1
323227
dist-x86_64-mingw:
324228
SCRIPT: python x.py dist
325229
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu --enable-full-tools --enable-profiler
326230
CUSTOM_MINGW: 1
327231
DIST_REQUIRE_ALL_TOOLS: 1
328-
DEPLOY: 1
329232

330233
# "alternate" deployment, see .travis.yml for more info
331234
dist-x86_64-msvc-alt:
332235
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-extended --enable-profiler
333236
SCRIPT: python x.py dist
334-
DEPLOY_ALT: 1

src/ci/azure-pipelines/pr.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ jobs:
1818
- template: steps/run.yml
1919
strategy:
2020
matrix:
21-
x86_64-gnu-llvm-6.0:
22-
IMAGE: x86_64-gnu-llvm-6.0
23-
mingw-check:
24-
IMAGE: mingw-check
21+
x86_64-gnu-llvm-6.0: {}
22+
mingw-check: {}
2523
x86_64-gnu-tools:
26-
IMAGE: x86_64-gnu-tools
2724
CI_ONLY_WHEN_SUBMODULES_CHANGED: 1

src/ci/azure-pipelines/steps/run.yml

+3-31
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ steps:
2828
- checkout: self
2929
fetchDepth: 2
3030

31+
- bash: src/ci/scripts/setup-environment.sh
32+
displayName: Setup environment
33+
3134
- bash: src/ci/scripts/should-skip-this.sh
3235
displayName: Decide whether to run this job
3336

@@ -38,38 +41,26 @@ steps:
3841
displayName: Show the current environment
3942

4043
- bash: src/ci/scripts/install-sccache.sh
41-
env:
42-
AGENT_OS: $(Agent.OS)
4344
displayName: Install sccache
4445
condition: and(succeeded(), not(variables.SKIP_JOB))
4546

4647
- bash: src/ci/scripts/install-clang.sh
47-
env:
48-
AGENT_OS: $(Agent.OS)
4948
displayName: Install clang
5049
condition: and(succeeded(), not(variables.SKIP_JOB))
5150

5251
- bash: src/ci/scripts/switch-xcode.sh
53-
env:
54-
AGENT_OS: $(Agent.OS)
5552
displayName: Switch to Xcode 9.3
5653
condition: and(succeeded(), not(variables.SKIP_JOB))
5754

5855
- bash: src/ci/scripts/install-wix.sh
59-
env:
60-
AGENT_OS: $(Agent.OS)
6156
displayName: Install wix
6257
condition: and(succeeded(), not(variables.SKIP_JOB))
6358

6459
- bash: src/ci/scripts/install-innosetup.sh
65-
env:
66-
AGENT_OS: $(Agent.OS)
6760
displayName: Install InnoSetup
6861
condition: and(succeeded(), not(variables.SKIP_JOB))
6962

7063
- bash: src/ci/scripts/windows-symlink-build-dir.sh
71-
env:
72-
AGENT_OS: $(Agent.OS)
7364
displayName: Ensure the build happens on C:\ instead of D:\
7465
condition: and(succeeded(), not(variables.SKIP_JOB))
7566

@@ -78,35 +69,22 @@ steps:
7869
condition: and(succeeded(), not(variables.SKIP_JOB))
7970

8071
- bash: src/ci/scripts/install-msys2.sh
81-
env:
82-
AGENT_OS: $(Agent.OS)
83-
SYSTEM_WORKFOLDER: $(System.Workfolder)
8472
displayName: Install msys2
8573
condition: and(succeeded(), not(variables.SKIP_JOB))
8674

8775
- bash: src/ci/scripts/install-msys2-packages.sh
88-
env:
89-
AGENT_OS: $(Agent.OS)
90-
SYSTEM_WORKFOLDER: $(System.Workfolder)
9176
displayName: Install msys2 packages
9277
condition: and(succeeded(), not(variables.SKIP_JOB))
9378

9479
- bash: src/ci/scripts/install-mingw.sh
95-
env:
96-
AGENT_OS: $(Agent.OS)
97-
SYSTEM_WORKFOLDER: $(System.Workfolder)
9880
displayName: Install MinGW
9981
condition: and(succeeded(), not(variables.SKIP_JOB))
10082

10183
- bash: src/ci/scripts/install-ninja.sh
102-
env:
103-
AGENT_OS: $(Agent.OS)
10484
displayName: Install ninja
10585
condition: and(succeeded(), not(variables.SKIP_JOB))
10686

10787
- bash: src/ci/scripts/enable-docker-ipv6.sh
108-
env:
109-
AGENT_OS: $(Agent.OS)
11088
displayName: Enable IPv6 on Docker
11189
condition: and(succeeded(), not(variables.SKIP_JOB))
11290

@@ -120,22 +98,16 @@ steps:
12098
condition: and(succeeded(), not(variables.SKIP_JOB))
12199

122100
- bash: src/ci/scripts/checkout-submodules.sh
123-
env:
124-
AGENT_OS: $(Agent.OS)
125101
displayName: Checkout submodules
126102
condition: and(succeeded(), not(variables.SKIP_JOB))
127103

128104
- bash: src/ci/scripts/verify-line-endings.sh
129-
env:
130-
AGENT_OS: $(Agent.OS)
131105
displayName: Verify line endings
132106
condition: and(succeeded(), not(variables.SKIP_JOB))
133107

134108
# Ensure the `aws` CLI is installed so we can deploy later on, cache docker
135109
# images, etc.
136110
- bash: src/ci/scripts/install-awscli.sh
137-
env:
138-
AGENT_OS: $(Agent.OS)
139111
condition: and(succeeded(), not(variables.SKIP_JOB))
140112
displayName: Install awscli
141113

0 commit comments

Comments
 (0)