Skip to content

Commit 97e1950

Browse files
committed
ci: add aarch64-gnu-debug job
Adds a new CI job which checks that the compiler builds with `--enable-debug` and tests that `needs-force-clang-based-tests` pass (where cross-language LTO is tested).
1 parent 58420a0 commit 97e1950

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
FROM ubuntu:22.04
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
RUN apt-get update && apt-get install -y --no-install-recommends \
5+
g++ \
6+
make \
7+
ninja-build \
8+
file \
9+
curl \
10+
ca-certificates \
11+
python3 \
12+
python3-dev \
13+
libxml2-dev \
14+
libncurses-dev \
15+
libedit-dev \
16+
swig \
17+
doxygen \
18+
git \
19+
cmake \
20+
sudo \
21+
gdb \
22+
libssl-dev \
23+
pkg-config \
24+
xz-utils \
25+
lld \
26+
clang \
27+
&& rm -rf /var/lib/apt/lists/*
28+
29+
COPY scripts/sccache.sh /scripts/
30+
RUN sh /scripts/sccache.sh
31+
32+
ENV RUSTBUILD_FORCE_CLANG_BASED_TESTS 1
33+
ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
34+
35+
# llvm.use-linker conflicts with downloading CI LLVM
36+
ENV NO_DOWNLOAD_CI_LLVM 1
37+
38+
ENV RUST_CONFIGURE_ARGS \
39+
--build=aarch64-unknown-linux-gnu \
40+
--enable-debug \
41+
--enable-lld \
42+
--set llvm.use-linker=lld \
43+
--set target.aarch64-unknown-linux-gnu.linker=clang \
44+
--set target.aarch64-unknown-linux-gnu.cc=clang \
45+
--set target.aarch64-unknown-linux-gnu.cxx=clang++
46+
47+
# This job appears to be checking two separate things:
48+
# - That we can build the compiler with `--enable-debug`
49+
# (without necessarily testing the result).
50+
# - That the tests with `//@ needs-force-clang-based-tests` pass, since they
51+
# don't run by default unless RUSTBUILD_FORCE_CLANG_BASED_TESTS is set.
52+
# - FIXME(https://github.com/rust-lang/rust/pull/126155#issuecomment-2156314273):
53+
# Currently we only run the subset of tests with "clang" in their name.
54+
55+
ENV SCRIPT \
56+
python3 ../x.py --stage 2 build && \
57+
python3 ../x.py --stage 2 test tests/run-make --test-args clang

src/ci/github-actions/jobs.yml

+3
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ auto:
116116
- image: aarch64-gnu
117117
<<: *job-aarch64-linux
118118

119+
- image: aarch64-gnu-debug
120+
<<: *job-aarch64-linux
121+
119122
- image: arm-android
120123
<<: *job-linux-4c
121124

0 commit comments

Comments
 (0)