-
Notifications
You must be signed in to change notification settings - Fork 14.3k
workflows: Rewrite build-ci-container to work on larger runners #117353
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
Changes from 13 commits
eac6c1b
62fac26
7f1cd6d
f0c3050
db0861f
0c76987
fe77a87
63e0fc6
7985506
5ed7ba6
24b33e5
7ddb314
379c49d
966fd98
00f4dcd
1f3a36f
9eaf5d3
8710b53
a941073
8660cae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,13 +19,11 @@ RUN curl -O -L https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-$L | |
|
||
WORKDIR /llvm-project-llvmorg-$LLVM_VERSION | ||
boomanaiden154 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
COPY bootstrap.patch / | ||
# Patch to enable better PGO profile data. | ||
# TODO: Remove this for llvm 20 | ||
ADD https://github.com/llvm/llvm-project/commit/738250989ce516f02f809bdfde474a039c77e81f.patch . | ||
|
||
# TODO(boomanaiden154): Remove the bootstrap patch once we unsplit the build | ||
# and no longer need to explicitly build the stage2 dependencies. | ||
RUN cat /bootstrap.patch | patch -p1 | ||
|
||
RUN mkdir build | ||
RUN patch -p1 < 738250989ce516f02f809bdfde474a039c77e81f.patch | ||
|
||
RUN cmake -B ./build -G Ninja ./llvm \ | ||
-C ./clang/cmake/caches/BOLT-PGO.cmake \ | ||
|
@@ -36,7 +34,29 @@ RUN cmake -B ./build -G Ninja ./llvm \ | |
-DCMAKE_INSTALL_PREFIX="$LLVM_SYSROOT" \ | ||
-DLLVM_ENABLE_PROJECTS="bolt;clang;lld;clang-tools-extra" \ | ||
-DLLVM_DISTRIBUTION_COMPONENTS="lld;compiler-rt;clang-format;scan-build" \ | ||
-DCLANG_DEFAULT_LINKER="lld" \ | ||
-DBOOTSTRAP_CLANG_PGO_TRAINING_DATA_SOURCE_DIR=/llvm-project-llvmorg-$LLVM_VERSION/llvm | ||
-DCLANG_DEFAULT_LINKER="lld" | ||
|
||
RUN ninja -C ./build stage2-clang-bolt stage2-install-distribution && ninja -C ./build install-distribution && rm -rf ./build | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe add a comment on why the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm inclined to drop it. I think this is a common pattern when doing something on the final image, but since this is just a builder image, I'm not sure if it makes sense to do. I don't have a strong opinion though. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems reasonable enough to me. |
||
|
||
FROM base | ||
|
||
COPY --from=stage1-toolchain $LLVM_SYSROOT $LLVM_SYSROOT | ||
|
||
# Need to install curl for hendrikmuhs/ccache-action | ||
# Need nodejs for some of the GitHub actions. | ||
# Need perl-modules for clang analyzer tests. | ||
# Need git for SPIRV-Tools tests. | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
binutils \ | ||
cmake \ | ||
curl \ | ||
git \ | ||
libstdc++-11-dev \ | ||
ninja-build \ | ||
nodejs \ | ||
perl-modules \ | ||
python3-psutil | ||
|
||
RUN ninja -C ./build stage2-instrumented-clang stage2-instrumented-lld | ||
ENV LLVM_SYSROOT=$LLVM_SYSROOT | ||
ENV PATH=${LLVM_SYSROOT}/bin:${PATH} |
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.