-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
eac6c1b
workflows: Rewrite build-ci-container to work on larger runners
tstellar 62fac26
Remove unneeded target
tstellar 7f1cd6d
Fix targets and apply new patch
tstellar f0c3050
Fix container name
tstellar db0861f
Container push changes
tstellar 0c76987
Fix identation
tstellar fe77a87
Fix container load/save
tstellar 63e0fc6
XXX: debug
tstellar 7985506
XXX: debug
tstellar 5ed7ba6
XXX: debug
tstellar 24b33e5
Revert Debug patches.
tstellar 7ddb314
Fix container path name
tstellar 379c49d
Merge branch 'main' into container-rewrite
tstellar 966fd98
Switch to using Google runners
tstellar 00f4dcd
Try using a container
tstellar 1f3a36f
Install podman
tstellar 9eaf5d3
Revert back to depot runners
tstellar 8710b53
Review comments
tstellar a941073
Remove redundant -f Dockerfile
tstellar 8660cae
Switch to using older ubuntu version
tstellar 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
This file contains hidden or 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 hidden or 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,62 @@ | ||
FROM docker.io/library/ubuntu:22.04 as base | ||
ENV LLVM_SYSROOT=/opt/llvm | ||
|
||
FROM base as stage1-toolchain | ||
ENV LLVM_VERSION=19.1.2 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
wget \ | ||
gcc \ | ||
g++ \ | ||
cmake \ | ||
ninja-build \ | ||
python3 \ | ||
git \ | ||
curl | ||
|
||
RUN curl -O -L https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-$LLVM_VERSION.tar.gz && tar -xf llvmorg-$LLVM_VERSION.tar.gz | ||
|
||
WORKDIR /llvm-project-llvmorg-$LLVM_VERSION | ||
|
||
# Patch to enable better PGO profile data. | ||
# TODO: Remove this for llvm 20 | ||
ADD https://github.com/llvm/llvm-project/commit/738250989ce516f02f809bdfde474a039c77e81f.patch . | ||
|
||
RUN patch -p1 < 738250989ce516f02f809bdfde474a039c77e81f.patch | ||
|
||
RUN cmake -B ./build -G Ninja ./llvm \ | ||
-C ./clang/cmake/caches/BOLT-PGO.cmake \ | ||
-DBOOTSTRAP_LLVM_ENABLE_LLD=ON \ | ||
-DBOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_LLD=ON \ | ||
-DPGO_INSTRUMENT_LTO=Thin \ | ||
-DLLVM_ENABLE_RUNTIMES="compiler-rt" \ | ||
-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" | ||
|
||
RUN ninja -C ./build stage2-clang-bolt stage2-install-distribution && ninja -C ./build install-distribution | ||
|
||
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 | ||
|
||
ENV LLVM_SYSROOT=$LLVM_SYSROOT | ||
ENV PATH=${LLVM_SYSROOT}/bin:${PATH} |
13 changes: 0 additions & 13 deletions
13
.github/workflows/containers/github-action-ci/bootstrap.patch
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
.github/workflows/containers/github-action-ci/stage1.Dockerfile
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
.github/workflows/containers/github-action-ci/stage2.Dockerfile
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.