Skip to content

Commit 713ede4

Browse files
Auto merge of #141777 - Kobzol:dist-linux-alt-no-pgo-bolt, r=<try>
Do not run PGO/BOLT in x64 Linux alt builds Should unblock #131077 and also reduce our CI costs. I'll see if I can actually move this job to the free runner, or at least to CodeBuild, if this works. Discussed [here](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Utility.20of.20the.20.60dist-x86_64-linux-alt.60.20job/with/521324477). r? `@marcoieni` try-job: `dist-x86_64-linux*`
2 parents 15825b7 + 6e64f8f commit 713ede4

File tree

4 files changed

+32
-9
lines changed

4 files changed

+32
-9
lines changed

src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,13 @@ ENV RUST_CONFIGURE_ARGS \
9696
--set rust.lto=thin \
9797
--set rust.codegen-units=1
9898

99-
# Note that `rust.debug` is set to true *only* for `opt-dist`
100-
ENV SCRIPT python3 ../x.py build --set rust.debug=true opt-dist && \
101-
./build/$HOSTS/stage0-tools-bin/opt-dist linux-ci -- python3 ../x.py dist \
102-
--host $HOSTS --target $HOSTS \
103-
--include-default-paths \
104-
build-manifest bootstrap && \
105-
# Use GCC for building GCC, as it seems to behave badly when built with Clang
106-
CC=/rustroot/bin/cc CXX=/rustroot/bin/c++ python3 ../x.py dist gcc
99+
ARG SCRIPT_ARG
100+
101+
COPY host-x86_64/dist-x86_64-linux/dist.sh /scripts/
102+
COPY host-x86_64/dist-x86_64-linux/dist-alt.sh /scripts/
103+
104+
ENV SCRIPT /scripts/${SCRIPT_ARG}
105+
107106
ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=clang
108107

109108
# This is the only builder which will create source tarballs
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
set -eux
4+
5+
python3 ../x.py dist \
6+
--host $HOSTS --target $HOSTS \
7+
--include-default-paths \
8+
build-manifest bootstrap
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
set -eux
4+
5+
python3 ../x.py build --set rust.debug=true opt-dist
6+
7+
./build/$HOSTS/stage0-tools-bin/opt-dist linux-ci -- python3 ../x.py dist \
8+
--host $HOSTS --target $HOSTS \
9+
--include-default-paths \
10+
build-manifest bootstrap
11+
12+
# Use GCC for building GCC, as it seems to behave badly when built with Clang
13+
CC=/rustroot/bin/cc CXX=/rustroot/bin/c++ python3 ../x.py dist gcc

src/ci/github-actions/jobs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ try:
141141
- name: dist-x86_64-linux
142142
env:
143143
CODEGEN_BACKENDS: llvm,cranelift
144+
DOCKER_SCRIPT: dist.sh
144145
<<: *job-linux-36c-codebuild
145146

146147
# Main CI jobs that have to be green to merge a commit into master
@@ -237,13 +238,15 @@ auto:
237238
- name: dist-x86_64-linux
238239
env:
239240
CODEGEN_BACKENDS: llvm,cranelift
241+
DOCKER_SCRIPT: dist.sh
240242
<<: *job-linux-36c-codebuild
241243

242244
- name: dist-x86_64-linux-alt
243245
env:
244246
IMAGE: dist-x86_64-linux
245247
CODEGEN_BACKENDS: llvm,cranelift
246-
<<: *job-linux-16c
248+
DOCKER_SCRIPT: dist-alt.sh
249+
<<: *job-linux-4c
247250

248251
- name: dist-x86_64-musl
249252
env:

0 commit comments

Comments
 (0)