Skip to content

Commit 5f1ff4f

Browse files
committed
Auto merge of #127102 - tmandry:rename-fuchsia-builder, r=<try>
Rename fuchsia builder and bump Fuchsia This PR renames the fuchsia builder as requested in rust-lang/rustc-dev-guide#1989 (review) and bumps Fuchsia. It also removes the wasm target, which should speed up the build a little. The new name of the builder is `x86_64-fuchsia` because I think `x86_64-gnu-fuchsia` would be confusing and put too much emphasis on the host target. (In terms of triples, we are targeting `x86_64-unknown-fuchsia` from `x86_64-unknown-linux-gnu`.) Someone on the infra team should weigh in here. cc `@lqd` r? t-infra try-job: x86_64-fuchsia
2 parents e9e6e2e + 078d9d8 commit 5f1ff4f

File tree

3 files changed

+15
-19
lines changed

3 files changed

+15
-19
lines changed

src/ci/docker/host-x86_64/x86_64-gnu-integration/Dockerfile src/ci/docker/host-x86_64/x86_64-fuchsia/Dockerfile

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This job builds a toolchain capable of building Fuchsia, and then builds
2-
# Fuchsia. See the build-fuchsia.sh script in this directory for more details.
2+
# Fuchsia as an integration test of the toolchain. See the build-fuchsia.sh
3+
# script in this directory for more details.
34

45
FROM ubuntu:22.04
56

@@ -24,7 +25,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2425
&& rm -rf /var/lib/apt/lists/*
2526

2627
# Duplicated in dist-various-2 Dockerfile.
27-
# FIXME: Move to canonical triple
2828
ENV \
2929
AR_x86_64_unknown_fuchsia=x86_64-unknown-fuchsia-ar \
3030
CC_x86_64_unknown_fuchsia=x86_64-unknown-fuchsia-clang \
@@ -48,10 +48,6 @@ ENV CARGO_TARGET_X86_64_UNKNOWN_FUCHSIA_RUSTFLAGS \
4848

4949
ENV TARGETS=x86_64-unknown-fuchsia
5050
ENV TARGETS=$TARGETS,x86_64-unknown-linux-gnu
51-
ENV TARGETS=$TARGETS,wasm32-unknown-unknown
52-
53-
# Fuchsia clang does not have wasm target enabled, use system clang.
54-
ENV CC_wasm32_unknown_unknown=clang-15
5551

5652
COPY scripts/sccache.sh /scripts/
5753
RUN sh /scripts/sccache.sh
@@ -76,4 +72,4 @@ ENV RUST_CONFIGURE_ARGS \
7672
--set target.x86_64-unknown-fuchsia.linker=/usr/local/bin/ld.lld
7773
ENV SCRIPT \
7874
python3 ../x.py install --target $TARGETS compiler/rustc library/std clippy && \
79-
bash ../src/ci/docker/host-x86_64/x86_64-gnu-integration/build-fuchsia.sh
75+
bash ../src/ci/docker/host-x86_64/x86_64-fuchsia/build-fuchsia.sh

src/ci/docker/host-x86_64/x86_64-gnu-integration/build-fuchsia.sh src/ci/docker/host-x86_64/x86_64-fuchsia/build-fuchsia.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
#
66
# You may run this script locally using Docker with the following command:
77
#
8-
# $ src/ci/docker/run.sh x86_64-gnu-integration
8+
# $ src/ci/docker/run.sh x86_64-fuchsia
99
#
1010
# Alternatively, from within the container with --dev, assuming you have made it
1111
# as far as building the toolchain with the above command:
1212
#
13-
# $ src/ci/docker/run.sh --dev x86_64-gnu-integration
13+
# $ src/ci/docker/run.sh --dev x86_64-fuchsia
1414
# docker# git config --global --add safe.directory /checkout/obj/fuchsia
15-
# docker# ../src/ci/docker/host-x86_64/x86_64-gnu-integration/build-fuchsia.sh
15+
# docker# ../src/ci/docker/host-x86_64/x86_64-fuchsia/build-fuchsia.sh
1616
#
1717
# Also see the docs in the rustc-dev-guide for more info:
1818
# https://github.com/rust-lang/rustc-dev-guide/pull/1989
@@ -21,7 +21,7 @@ set -euf -o pipefail
2121

2222
# Set this variable to 1 to disable updating the Fuchsia checkout. This is
2323
# useful for making local changes. You can find the Fuchsia checkout in
24-
# `obj/x86_64-gnu-integration/fuchsia` in your local checkout after running this
24+
# `obj/x86_64-fuchsia/fuchsia` in your local checkout after running this
2525
# job for the first time.
2626
KEEP_CHECKOUT=
2727

@@ -35,7 +35,7 @@ PICK_REFS=()
3535
# commit hash of fuchsia.git and some other repos in the "monorepo" checkout, in
3636
# addition to versions of prebuilts. It should be bumped regularly by the
3737
# Fuchsia team – we aim for every 1-2 months.
38-
INTEGRATION_SHA=737ebdd83afa47b742ca8325fad0176952fcefbd
38+
INTEGRATION_SHA=d1d2f20efe46e22be179953dd6726c96eced54ab
3939

4040
checkout=fuchsia
4141
jiri=.jiri_root/bin/jiri

src/ci/github-actions/jobs.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,13 @@ auto:
208208
- image: test-various
209209
<<: *job-linux-4c
210210

211+
- image: x86_64-fuchsia
212+
# Only run this job on the nightly channel. Fuchsia requires
213+
# nightly features to compile, and this job would fail if
214+
# executed on beta and stable.
215+
only_on_channel: nightly
216+
<<: *job-linux-8c
217+
211218
- image: x86_64-gnu
212219
<<: *job-linux-4c
213220

@@ -229,13 +236,6 @@ auto:
229236
- image: x86_64-gnu-aux
230237
<<: *job-linux-4c
231238

232-
- image: x86_64-gnu-integration
233-
# Only run this job on the nightly channel. Fuchsia requires
234-
# nightly features to compile, and this job would fail if
235-
# executed on beta and stable.
236-
only_on_channel: nightly
237-
<<: *job-linux-8c
238-
239239
- image: x86_64-gnu-debug
240240
<<: *job-linux-4c
241241

0 commit comments

Comments
 (0)