Skip to content

Commit 03bc6ce

Browse files
committed
Auto merge of #119400 - tmandry:build-fuchsia-8c, r=<try>
Build Fuchsia on 8 cores instead of 16 Requested in #117771 (comment). r? `@tmandry`
2 parents e51e98d + 530b0ca commit 03bc6ce

File tree

5 files changed

+20
-13
lines changed

5 files changed

+20
-13
lines changed

.github/workflows/ci.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -579,10 +579,9 @@ jobs:
579579
strategy:
580580
matrix:
581581
include:
582-
- name: dist-x86_64-linux
583-
env:
584-
CODEGEN_BACKENDS: "llvm,cranelift"
585-
os: ubuntu-20.04-16core-64gb
582+
- name: x86_64-gnu-integration
583+
os: ubuntu-20.04-8core-32gb
584+
env: {}
586585
timeout-minutes: 600
587586
runs-on: "${{ matrix.os }}"
588587
steps:

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

+4
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,17 @@ ENV CARGO_TARGET_X86_64_FUCHSIA_RUSTFLAGS \
4444

4545
ENV TARGETS=x86_64-fuchsia
4646
ENV TARGETS=$TARGETS,x86_64-unknown-linux-gnu
47+
ENV TARGETS=$TARGETS,wasm32-unknown-unknown
4748

4849
COPY scripts/sccache.sh /scripts/
4950
RUN sh /scripts/sccache.sh
5051

5152
ENV RUST_INSTALL_DIR /checkout/obj/install
5253
RUN mkdir -p $RUST_INSTALL_DIR/etc
5354

55+
# Fuchsia only supports LLVM.
56+
ENV CODEGEN_BACKENDS llvm
57+
5458
ENV RUST_CONFIGURE_ARGS \
5559
--prefix=$RUST_INSTALL_DIR \
5660
--sysconfdir=etc \

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
set -euf -o pipefail
77

88
INTEGRATION_SHA=66793c4894bf6204579bbee3b79956335f31c768
9-
PICK_REFS=()
9+
PICK_REFS=(
10+
refs/changes/86/965586/2
11+
)
1012

1113
checkout=fuchsia
1214
jiri=.jiri_root/bin/jiri

src/ci/github-actions/ci.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ jobs:
476476
# nightly features to compile, and this job would fail if
477477
# executed on beta and stable.
478478
CI_ONLY_WHEN_CHANNEL: nightly
479-
<<: *job-linux-16c
479+
<<: *job-linux-8c
480480

481481
- name: x86_64-gnu-debug
482482
<<: *job-linux-8c
@@ -732,11 +732,13 @@ jobs:
732732
strategy:
733733
matrix:
734734
include:
735-
- &dist-x86_64-linux
736-
name: dist-x86_64-linux
737-
env:
738-
CODEGEN_BACKENDS: llvm,cranelift
739-
<<: *job-linux-16c
735+
- name: x86_64-gnu-integration
736+
<<: *job-linux-8c
737+
#- &dist-x86_64-linux
738+
# name: dist-x86_64-linux
739+
# env:
740+
# CODEGEN_BACKENDS: llvm,cranelift
741+
# <<: *job-linux-16c
740742

741743

742744
master:

src/ci/run.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ else
130130
# tests as it will fail them.
131131
if [[ "${ENABLE_GCC_CODEGEN}" == "1" ]]; then
132132
# Test the Cranelift and GCC backends in CI. Bootstrap knows which targets to run tests on.
133-
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=llvm,cranelift,gcc"
133+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=${CODEGEN_BACKENDS:-llvm,cranelift,gcc}"
134134
else
135135
# Test the Cranelift backend in CI. Bootstrap knows which targets to run tests on.
136-
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=llvm,cranelift"
136+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=${CODEGEN_BACKENDS:-llvm,cranelift}"
137137
fi
138138

139139
# We enable this for non-dist builders, since those aren't trying to produce

0 commit comments

Comments
 (0)