Skip to content

Commit 2c05e83

Browse files
committed
Auto merge of #62545 - Mark-Simulacrum:azure-line-endings, r=<try>
Attempt to fix Azure line endings This is just a verification step for now, but I want to run it in a try builder to gauge whether it works or not. Presumably it'll fail, and we can then attempt to track down why. r? @ghost
2 parents 0b680cf + 6c07341 commit 2c05e83

File tree

2 files changed

+50
-4
lines changed

2 files changed

+50
-4
lines changed

.azure-pipelines/steps/run.yml

+21-1
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,26 @@ steps:
1515
- bash: git config --global core.autocrlf false
1616
displayName: "Disable git automatic line ending conversion"
1717

18+
- bash: |
19+
set -x
20+
git config --list --show-origin
21+
displayName: git config pre checkout
22+
1823
- checkout: self
1924
fetchDepth: 2
2025

26+
- bash: git config --list --show-origin
27+
displayName: git config post checkout
28+
2129
# Spawn a background process to collect CPU usage statistics which we'll upload
2230
# at the end of the build. See the comments in the script here for more
2331
# information.
2432
- bash: python src/ci/cpu-usage-over-time.py &> cpu-usage.csv &
2533
displayName: "Collect CPU-usage statistics in the background"
2634

27-
- bash: printenv | sort
35+
- bash: |
36+
printenv | sort
37+
git config --list --show-origin
2838
displayName: Show environment variables
2939

3040
- bash: |
@@ -84,6 +94,16 @@ steps:
8494
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
8595
displayName: Check out submodules (Windows)
8696

97+
# See also the disable for autocrlf above, this just checks that it worked
98+
#
99+
# If matches for '\r' are found, we should immediately exit the build.
100+
- bash: |
101+
set -x
102+
git config --list
103+
bash -c 'egrep -q $"\r"\$ src/tools/rust-installer/install-template.sh'
104+
if [ $? = 0 ]; then exit 1 ; fi
105+
displayName: Verify line endings are LF
106+
87107
# Ensure the `aws` CLI is installed so we can deploy later on, cache docker
88108
# images, etc.
89109
- bash: |

.azure-pipelines/try.yml

+29-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,35 @@ jobs:
1818
IMAGE: dist-x86_64-linux
1919
DEPLOY: 1
2020

21-
dist-x86_64-linux-alt:
22-
IMAGE: dist-x86_64-linux
23-
DEPLOY_ALT: 1
21+
# dist-x86_64-linux-alt:
22+
# IMAGE: dist-x86_64-linux
23+
# DEPLOY_ALT: 1
24+
- job: Windows
25+
timeoutInMinutes: 600
26+
pool:
27+
vmImage: 'vs2017-win2016'
28+
steps:
29+
- template: steps/run.yml
30+
strategy:
31+
matrix:
32+
dist-i686-msvc:
33+
RUST_CONFIGURE_ARGS: >
34+
--build=i686-pc-windows-msvc
35+
--target=i586-pc-windows-msvc
36+
--enable-full-tools
37+
--enable-profiler
38+
SCRIPT: python x.py dist
39+
DIST_REQUIRE_ALL_TOOLS: 1
40+
DEPLOY: 1
41+
dist-i686-mingw:
42+
MSYS_BITS: 32
43+
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu --enable-full-tools --enable-profiler
44+
SCRIPT: python x.py dist
45+
MINGW_URL: https://rust-lang-ci2.s3.amazonaws.com/rust-ci-mirror
46+
MINGW_ARCHIVE: i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z
47+
MINGW_DIR: mingw32
48+
DIST_REQUIRE_ALL_TOOLS: 1
49+
DEPLOY: 1
2450

2551
# The macOS and Windows builds here are currently disabled due to them not being
2652
# overly necessary on `try` builds. We also don't actually have anything that

0 commit comments

Comments
 (0)