Skip to content

Commit 174fe66

Browse files
committed
Auto merge of rust-lang#119399 - tmandry:build-fuchsia-tests, r=<try>
Build Fuchsia tests in CI This would have caught rust-lang/rust-clippy#11952 and rust-lang#119593.
2 parents 5d3d347 + 25f5f8f commit 174fe66

File tree

5 files changed

+18
-11
lines changed

5 files changed

+18
-11
lines changed

.github/workflows/ci.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,9 @@ jobs:
567567
strategy:
568568
matrix:
569569
include:
570-
- name: dist-x86_64-linux
571-
env:
572-
CODEGEN_BACKENDS: "llvm,cranelift"
570+
- name: x86_64-gnu-integration
573571
os: ubuntu-20.04-16core-64gb
572+
env: {}
574573
timeout-minutes: 600
575574
runs-on: "${{ matrix.os }}"
576575
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

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55

66
set -euf -o pipefail
77

8-
INTEGRATION_SHA=66793c4894bf6204579bbee3b79956335f31c768
9-
PICK_REFS=()
8+
INTEGRATION_SHA=ea080c6e400e721e123b0ec751c73619963bf1ca
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

+6-4
Original file line numberDiff line numberDiff line change
@@ -724,11 +724,13 @@ jobs:
724724
strategy:
725725
matrix:
726726
include:
727-
- &dist-x86_64-linux
728-
name: dist-x86_64-linux
729-
env:
730-
CODEGEN_BACKENDS: llvm,cranelift
727+
- name: x86_64-gnu-integration
731728
<<: *job-linux-16c
729+
#- &dist-x86_64-linux
730+
# name: dist-x86_64-linux
731+
# env:
732+
# CODEGEN_BACKENDS: llvm,cranelift
733+
# <<: *job-linux-16c
732734

733735

734736
master:

src/ci/run.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ else
144144
# tests as it will fail them.
145145
if [[ "${ENABLE_GCC_CODEGEN}" == "1" ]]; then
146146
# Test the Cranelift and GCC backends in CI. Bootstrap knows which targets to run tests on.
147-
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=llvm,cranelift,gcc"
147+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=${CODEGEN_BACKENDS:-llvm,cranelift,gcc}"
148148
else
149149
# Test the Cranelift backend in CI. Bootstrap knows which targets to run tests on.
150-
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=llvm,cranelift"
150+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=${CODEGEN_BACKENDS:-llvm,cranelift}"
151151
fi
152152

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

0 commit comments

Comments
 (0)