-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: Move dist-aarch64-linux to an aarch64 runner #135262
Open
mrkajetanp
wants to merge
2
commits into
rust-lang:master
Choose a base branch
from
mrkajetanp:ci-aarch64-dist-reland
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+135
−95
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
101 changes: 101 additions & 0 deletions
101
src/ci/docker/host-aarch64/dist-aarch64-linux/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# We document platform support for minimum glibc 2.17 and kernel 3.2. | ||
# CentOS 7 has headers for kernel 3.10, but that's fine as long as we don't | ||
# actually use newer APIs in rustc or std without a fallback. It's more | ||
# important that we match glibc for ELF symbol versioning. | ||
FROM centos:7 | ||
|
||
WORKDIR /build | ||
|
||
# CentOS 7 EOL is June 30, 2024, but the repos remain in the vault. | ||
RUN sed -i /etc/yum.repos.d/*.repo -e 's!^mirrorlist!#mirrorlist!' \ | ||
-e 's!^#baseurl=http://mirror.centos.org/!baseurl=https://vault.centos.org/!' | ||
RUN sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf | ||
|
||
RUN yum upgrade -y && \ | ||
yum install -y \ | ||
automake \ | ||
bzip2 \ | ||
file \ | ||
gcc \ | ||
gcc-c++ \ | ||
git \ | ||
glibc-devel \ | ||
libedit-devel \ | ||
libstdc++-devel \ | ||
make \ | ||
ncurses-devel \ | ||
openssl-devel \ | ||
patch \ | ||
perl \ | ||
perl-core \ | ||
pkgconfig \ | ||
python3 \ | ||
unzip \ | ||
wget \ | ||
xz \ | ||
zlib-devel \ | ||
&& yum clean all | ||
|
||
RUN mkdir -p /rustroot/bin | ||
|
||
ENV PATH=/rustroot/bin:$PATH | ||
ENV LD_LIBRARY_PATH=/rustroot/lib64:/rustroot/lib32:/rustroot/lib | ||
ENV PKG_CONFIG_PATH=/rustroot/lib/pkgconfig | ||
WORKDIR /tmp | ||
RUN mkdir /home/user | ||
COPY scripts/shared.sh /tmp/ | ||
|
||
# Need at least GCC 5.1 to compile LLVM | ||
COPY scripts/build-gcc.sh /tmp/ | ||
ENV GCC_VERSION=9.5.0 | ||
ENV GCC_BUILD_TARGET=aarch64-unknown-linux-gnu | ||
RUN ./build-gcc.sh && yum remove -y gcc gcc-c++ | ||
|
||
ENV CC=gcc CXX=g++ | ||
|
||
# LLVM 17 needs cmake 3.20 or higher. | ||
COPY scripts/cmake.sh /tmp/ | ||
RUN ./cmake.sh | ||
|
||
# Build LLVM+Clang | ||
COPY scripts/build-clang.sh /tmp/ | ||
ENV LLVM_BUILD_TARGETS=AArch64 | ||
RUN ./build-clang.sh | ||
ENV CC=clang CXX=clang++ | ||
|
||
# Build zstd to enable `llvm.libzstd`. | ||
COPY scripts/build-zstd.sh /tmp/ | ||
RUN ./build-zstd.sh | ||
|
||
COPY scripts/sccache.sh /scripts/ | ||
RUN sh /scripts/sccache.sh | ||
|
||
ENV PGO_HOST=aarch64-unknown-linux-gnu | ||
ENV HOSTS=aarch64-unknown-linux-gnu | ||
|
||
ENV CPATH=/usr/include/aarch64-linux-gnu/:$CPATH | ||
|
||
ENV RUST_CONFIGURE_ARGS \ | ||
--build=aarch64-unknown-linux-gnu \ | ||
--enable-full-tools \ | ||
--enable-profiler \ | ||
--enable-sanitizers \ | ||
--enable-compiler-docs \ | ||
--set target.aarch64-unknown-linux-gnu.linker=clang \ | ||
--set target.aarch64-unknown-linux-gnu.ar=/rustroot/bin/llvm-ar \ | ||
--set target.aarch64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib \ | ||
--set llvm.link-shared=true \ | ||
--set llvm.thin-lto=true \ | ||
--set llvm.libzstd=true \ | ||
--set llvm.ninja=false \ | ||
--set rust.debug-assertions=false \ | ||
--set rust.jemalloc \ | ||
--set rust.use-lld=true \ | ||
--set rust.codegen-units=1 | ||
|
||
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS | ||
|
||
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=clang | ||
ENV DIST_SRC 1 | ||
ENV LIBCURL_NO_PKG_CONFIG 1 | ||
ENV DIST_REQUIRE_ALL_TOOLS 1 |
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
src/ci/docker/host-x86_64/dist-aarch64-linux/aarch64-linux-gnu.defconfig
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
src/ci/docker/host-x86_64/dist-powerpc64le-linux/shared.sh
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, just noticed this now.
Could you remove this line? It's enough to build the source archives on the x64 dist runner.