Skip to content
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

[Github] Add git to actions container image #80341

Merged

Conversation

boomanaiden154
Copy link
Contributor

This patch adds git to the actions container image. This is not necessarily needed for actions/checkout (as it will fallback to downloading a tar archive), but is good to have for that in addition to any future operations that might need git. In addition, the LLVM CMake configuration throws some warnings when Git is not installed.

This patch also removes a slash from LLVM_SYSROOT. This is cosmetic as /opt/llvm//bin (which showed up on $PATH) is equivalent to /opt/llvm/bin, but the latter is canonical.

This patch adds git to the actions container image. This is not
necessarily needed for actions/checkout (as it will fallback to
downloading a tar archive), but is good to have for that in addition to
any future operations that might need git. In addition, the LLVM CMake
configuration throws some warnings when Git is not installed.

This patch also removes a slash from LLVM_SYSROOT. This is cosmetic as
/opt/llvm//bin (which showed up on $PATH) is equivalent to
/opt/llvm/bin, but the latter is canonical.
@llvmbot
Copy link

llvmbot commented Feb 1, 2024

@llvm/pr-subscribers-github-workflow

Author: Aiden Grossman (boomanaiden154)

Changes

This patch adds git to the actions container image. This is not necessarily needed for actions/checkout (as it will fallback to downloading a tar archive), but is good to have for that in addition to any future operations that might need git. In addition, the LLVM CMake configuration throws some warnings when Git is not installed.

This patch also removes a slash from LLVM_SYSROOT. This is cosmetic as /opt/llvm//bin (which showed up on $PATH) is equivalent to /opt/llvm/bin, but the latter is canonical.


Full diff: https://github.com/llvm/llvm-project/pull/80341.diff

1 Files Affected:

  • (modified) .github/workflows/containers/github-action-ci/Dockerfile (+3-2)
diff --git a/.github/workflows/containers/github-action-ci/Dockerfile b/.github/workflows/containers/github-action-ci/Dockerfile
index 2f86b9ba1ef44..66fa81d5a10ae 100644
--- a/.github/workflows/containers/github-action-ci/Dockerfile
+++ b/.github/workflows/containers/github-action-ci/Dockerfile
@@ -1,5 +1,5 @@
 FROM docker.io/library/ubuntu:22.04 as base
-ENV LLVM_SYSROOT=/opt/llvm/
+ENV LLVM_SYSROOT=/opt/llvm
 
 FROM base as toolchain
 ENV LLVM_VERSION=17.0.6
@@ -11,7 +11,8 @@ RUN apt-get update && \
     g++ \
     cmake \
     ninja-build \
-    python3
+    python3 \
+    git
 
 RUN wget https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-$LLVM_VERSION.tar.gz && tar -xf llvmorg-$LLVM_VERSION.tar.gz
 

@boomanaiden154 boomanaiden154 merged commit cc0d752 into llvm:main Feb 2, 2024
6 checks passed
agozillon pushed a commit to agozillon/llvm-project that referenced this pull request Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants