Skip to content

Commit 1bb2e50

Browse files
committed
Rebase
Created using spr 1.3.5
2 parents ba03acd + c7de642 commit 1bb2e50

File tree

1,267 files changed

+942566
-26122
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,267 files changed

+942566
-26122
lines changed

.github/workflows/build-ci-container.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ jobs:
2323
runs-on: depot-ubuntu-22.04-16
2424
outputs:
2525
container-name: ${{ steps.vars.outputs.container-name }}
26+
container-name-agent: ${{ steps.vars.outputs.container-name-agent }}
2627
container-name-tag: ${{ steps.vars.outputs.container-name-tag }}
28+
container-name-agent-tag: ${{ steps.vars.outputs.container-name-agent-tag }}
2729
container-filename: ${{ steps.vars.outputs.container-filename }}
2830
steps:
2931
- name: Checkout LLVM
@@ -36,19 +38,22 @@ jobs:
3638
tag=`date +%s`
3739
container_name="ghcr.io/$GITHUB_REPOSITORY_OWNER/ci-ubuntu-22.04"
3840
echo "container-name=$container_name" >> $GITHUB_OUTPUT
41+
echo "container-name-agent=$container_name-agent" >> $GITHUB_OUTPUT
3942
echo "container-name-tag=$container_name:$tag" >> $GITHUB_OUTPUT
43+
echo "container-name-agent-tag=$container_name-agent:$tag" >> $GITHUB_OUTPUT
4044
echo "container-filename=$(echo $container_name:$tag | sed -e 's/\//-/g' -e 's/:/-/g').tar" >> $GITHUB_OUTPUT
4145
- name: Build container
4246
working-directory: ./.github/workflows/containers/github-action-ci/
4347
run: |
44-
podman build -t ${{ steps.vars.outputs.container-name-tag }} .
48+
podman build --target ci-container -t ${{ steps.vars.outputs.container-name-tag }} .
49+
podman build --target ci-container-agent -t ${{ steps.vars.outputs.container-name-agent-tag }} .
4550
4651
# Save the container so we have it in case the push fails. This also
4752
# allows us to separate the push step into a different job so we can
4853
# maintain minimal permissions while building the container.
4954
- name: Save container image
5055
run: |
51-
podman save ${{ steps.vars.outputs.container-name-tag }} > ${{ steps.vars.outputs.container-filename }}
56+
podman save ${{ steps.vars.outputs.container-name-tag }} ${{ steps.vars.outputs.container-name-agent-tag }} > ${{ steps.vars.outputs.container-filename }}
5257
5358
- name: Upload container image
5459
uses: actions/upload-artifact@v4
@@ -86,3 +91,7 @@ jobs:
8691
podman login -u ${{ github.actor }} -p $GITHUB_TOKEN ghcr.io
8792
podman push ${{ needs.build-ci-container.outputs.container-name-tag }}
8893
podman push ${{ needs.build-ci-container.outputs.container-name }}:latest
94+
95+
podman tag ${{ needs.build-ci-container.outputs.container-name-agent-tag }} ${{ needs.build-ci-container.outputs.container-name-agent }}:latest
96+
podman push ${{ needs.build-ci-container.outputs.container-name-agent-tag }}
97+
podman push ${{ needs.build-ci-container.outputs.container-name-agent }}:latest

.github/workflows/containers/github-action-ci-windows/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ RUN choco install -y handle
108108
109109
RUN pip3 install pywin32 buildbot-worker==2.8.4
110110
111-
ARG RUNNER_VERSION=2.319.1
111+
ARG RUNNER_VERSION=2.321.0
112112
ENV RUNNER_VERSION=$RUNNER_VERSION
113113
114114
RUN powershell -Command \

.github/workflows/containers/github-action-ci/Dockerfile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ RUN apt-get update && \
1313
ninja-build \
1414
python3 \
1515
git \
16-
curl
16+
curl \
17+
zlib1g-dev
1718

1819
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
1920

@@ -38,7 +39,7 @@ RUN cmake -B ./build -G Ninja ./llvm \
3839

3940
RUN ninja -C ./build stage2-clang-bolt stage2-install-distribution && ninja -C ./build install-distribution
4041

41-
FROM base
42+
FROM base as ci-container
4243

4344
COPY --from=stage1-toolchain $LLVM_SYSROOT $LLVM_SYSROOT
4445

@@ -91,4 +92,15 @@ RUN adduser gha sudo
9192
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
9293

9394
USER gha
95+
WORKDIR /home/gha
96+
97+
FROM ci-container as ci-container-agent
98+
99+
ENV GITHUB_RUNNER_VERSION=2.321.0
100+
101+
RUN mkdir actions-runner && \
102+
cd actions-runner && \
103+
curl -O -L https://github.com/actions/runner/releases/download/v$GITHUB_RUNNER_VERSION/actions-runner-linux-x64-$GITHUB_RUNNER_VERSION.tar.gz && \
104+
tar xzf ./actions-runner-linux-x64-$GITHUB_RUNNER_VERSION.tar.gz && \
105+
rm ./actions-runner-linux-x64-$GITHUB_RUNNER_VERSION.tar.gz
94106

.github/workflows/premerge.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
fetch-depth: 2
3131
- name: Setup ccache
3232
uses: hendrikmuhs/[email protected]
33+
with:
34+
max-size: "2000M"
3335
- name: Build and Test
3436
# Mark the job as a success even if the step fails so that people do
3537
# not get notified while the new premerge pipeline is in an

.github/workflows/release-binaries-all.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ jobs:
8383
matrix:
8484
runs-on:
8585
- ubuntu-22.04
86-
- windows-2022
8786
- macos-13
8887
- macos-14
8988

0 commit comments

Comments
 (0)