[llvm] [Github] Add github-automation container (PR #200704)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 1 06:24:56 PDT 2026


================
@@ -113,3 +113,22 @@ RUN apt-get update && \
     universal-ctags && \
     apt-get clean && \
     rm -rf /var/lib/apt/lists/*
+
+FROM base as ci-container-github-automation
+ARG LLVM_GIT_CHECKOUT=/home/gha/llvm-project
+ARG LLVM_GITHUB_AUTOMATION_DIR=llvm/utils/git
+ENV PATH=${LLVM_GIT_CHECKOUT}/${LLVM_GITHUB_AUTOMATION_DIR}:${PATH}
+
+RUN apt-get update && \
+    DEBIAN_FRONTEND=noninteractive apt-get install -y \
+    python3-git \
+    python3-github && \
+    apt-get clean && \
+    rm -rf /var/lib/apt/lists/*
+
+USER gha
+RUN git clone https://github.com/llvm/llvm-project --depth=1 -b main --no-checkout ${LLVM_GIT_CHECKOUT} && \
----------------
boomanaiden154 wrote:

Can we just add `github-automatin.py` to the sparse checkout in the workflow and use a `COPY` directive here?

https://github.com/llvm/llvm-project/pull/200704


More information about the llvm-commits mailing list