File tree Expand file tree Collapse file tree 9 files changed +31
-40
lines changed
host-aarch64/aarch64-gnu-llvm-19 Expand file tree Collapse file tree 9 files changed +31
-40
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,7 @@ ENV RUST_CONFIGURE_ARGS \
50
50
51
51
COPY scripts/shared.sh /scripts/
52
52
53
- ARG SCRIPT_ARG
53
+ COPY scripts/stage_2_test_set1.sh /scripts/
54
+ COPY scripts/stage_2_test_set2.sh /scripts/
54
55
55
- COPY scripts/stage_2_test_set1.sh /tmp/
56
- COPY scripts/stage_2_test_set2.sh /tmp/
57
-
58
- ENV SCRIPT "/tmp/${SCRIPT_ARG}"
56
+ ENV SCRIPT "Must specify DOCKER_SCRIPT for this image"
Original file line number Diff line number Diff line change @@ -96,12 +96,10 @@ ENV RUST_CONFIGURE_ARGS \
96
96
--set rust.lto=thin \
97
97
--set rust.codegen-units=1
98
98
99
- ARG SCRIPT_ARG
100
-
101
99
COPY host-x86_64/dist-x86_64-linux/dist.sh /scripts/
102
100
COPY host-x86_64/dist-x86_64-linux/dist-alt.sh /scripts/
103
101
104
- ENV SCRIPT /scripts/${SCRIPT_ARG}
102
+ ENV SCRIPT "Must specify DOCKER_SCRIPT for this image"
105
103
106
104
ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=clang
107
105
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ COPY scripts/sccache.sh /scripts/
23
23
RUN sh /scripts/sccache.sh
24
24
25
25
ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu --disable-optimize-tests
26
- ARG SCRIPT_ARG
27
26
COPY scripts/stage_2_test_set1.sh /scripts/
28
27
COPY scripts/stage_2_test_set2.sh /scripts/
29
- ENV SCRIPT ${SCRIPT_ARG}
28
+ COPY scripts/i686-gnu-nopt-2.sh /scripts/
29
+ ENV SCRIPT "Must specify DOCKER_SCRIPT for this image"
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ COPY scripts/sccache.sh /scripts/
24
24
RUN sh /scripts/sccache.sh
25
25
26
26
ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu
27
- ARG SCRIPT_ARG
28
27
COPY scripts/stage_2_test_set1.sh /scripts/
29
28
COPY scripts/stage_2_test_set2.sh /scripts/
30
- ENV SCRIPT /scripts/${SCRIPT_ARG}
29
+ ENV SCRIPT "Must specify DOCKER_SCRIPT for this image"
Original file line number Diff line number Diff line change @@ -57,12 +57,10 @@ ENV RUST_CONFIGURE_ARGS \
57
57
58
58
COPY scripts/shared.sh /scripts/
59
59
60
- ARG SCRIPT_ARG
60
+ COPY scripts/x86_64-gnu-llvm.sh /scripts/
61
+ COPY scripts/x86_64-gnu-llvm2.sh /scripts/
62
+ COPY scripts/x86_64-gnu-llvm3.sh /scripts/
63
+ COPY scripts/stage_2_test_set1.sh /scripts/
64
+ COPY scripts/stage_2_test_set2.sh /scripts/
61
65
62
- COPY scripts/x86_64-gnu-llvm.sh /tmp/
63
- COPY scripts/x86_64-gnu-llvm2.sh /tmp/
64
- COPY scripts/x86_64-gnu-llvm3.sh /tmp/
65
- COPY scripts/stage_2_test_set1.sh /tmp/
66
- COPY scripts/stage_2_test_set2.sh /tmp/
67
-
68
- ENV SCRIPT "/tmp/${SCRIPT_ARG}"
66
+ ENV SCRIPT "Must specify DOCKER_SCRIPT for this image"
Original file line number Diff line number Diff line change @@ -57,12 +57,10 @@ ENV RUST_CONFIGURE_ARGS \
57
57
58
58
COPY scripts/shared.sh /scripts/
59
59
60
- ARG SCRIPT_ARG
60
+ COPY scripts/x86_64-gnu-llvm.sh /scripts/
61
+ COPY scripts/x86_64-gnu-llvm2.sh /scripts/
62
+ COPY scripts/x86_64-gnu-llvm3.sh /scripts/
63
+ COPY scripts/stage_2_test_set1.sh /scripts/
64
+ COPY scripts/stage_2_test_set2.sh /scripts/
61
65
62
- COPY scripts/x86_64-gnu-llvm.sh /tmp/
63
- COPY scripts/x86_64-gnu-llvm2.sh /tmp/
64
- COPY scripts/x86_64-gnu-llvm3.sh /tmp/
65
- COPY scripts/stage_2_test_set1.sh /tmp/
66
- COPY scripts/stage_2_test_set2.sh /tmp/
67
-
68
- ENV SCRIPT "/tmp/${SCRIPT_ARG}"
66
+ ENV SCRIPT "Must specify DOCKER_SCRIPT for this image"
Original file line number Diff line number Diff line change @@ -114,14 +114,6 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
114
114
" $context "
115
115
)
116
116
117
- # If the environment variable DOCKER_SCRIPT is defined,
118
- # set the build argument SCRIPT_ARG to DOCKER_SCRIPT.
119
- # In this way, we run the script defined in CI,
120
- # instead of the one defined in the Dockerfile.
121
- if [ -n " ${DOCKER_SCRIPT+x} " ]; then
122
- build_args+=(" --build-arg" " SCRIPT_ARG=${DOCKER_SCRIPT} " )
123
- fi
124
-
125
117
GHCR_BUILDKIT_IMAGE=" ghcr.io/rust-lang/buildkit:buildx-stable-1"
126
118
# On non-CI jobs, we try to download a pre-built image from the rust-lang-ci
127
119
# ghcr.io registry. If it is not possible, we fall back to building the image
@@ -341,6 +333,10 @@ if [ "$ENABLE_GCC_CODEGEN" = "1" ]; then
341
333
echo " Setting extra environment values for docker: $extra_env "
342
334
fi
343
335
336
+ if [ -n " ${DOCKER_SCRIPT} " ]; then
337
+ extra_env=" $extra_env --env SCRIPT=\" /scripts/${DOCKER_SCRIPT} \" "
338
+ fi
339
+
344
340
docker \
345
341
run \
346
342
--workdir /checkout/obj \
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -ex
4
+
5
+ python3 ../x.py test --stage 1 --set rust.optimize=false library/std &&
6
+ /scripts/stage_2_test_set2.sh
Original file line number Diff line number Diff line change @@ -315,16 +315,14 @@ auto:
315
315
- name : i686-gnu-nopt-1
316
316
env :
317
317
IMAGE : i686-gnu-nopt
318
- DOCKER_SCRIPT : /scripts/ stage_2_test_set1.sh
318
+ DOCKER_SCRIPT : stage_2_test_set1.sh
319
319
<< : *job-linux-4c
320
320
321
321
# Skip tests that run in i686-gnu-nopt-1
322
322
- name : i686-gnu-nopt-2
323
323
env :
324
324
IMAGE : i686-gnu-nopt
325
- DOCKER_SCRIPT : >-
326
- python3 ../x.py test --stage 1 --set rust.optimize=false library/std &&
327
- /scripts/stage_2_test_set2.sh
325
+ DOCKER_SCRIPT : i686-gnu-nopt-2.sh
328
326
<< : *job-linux-4c
329
327
330
328
- name : pr-check-1
You can’t perform that action at this time.
0 commit comments