Skip to content

Commit 2ede4ca

Browse files
committed
Reduce amount of changes
1 parent 42021a7 commit 2ede4ca

32 files changed

+359
-1440
lines changed

.github/new-issues-labeler.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,3 @@
2727

2828
'bolt':
2929
- '/\bbolt(?!\-)\b/i'
30-
31-
'infra:commit-access-request':
32-
- '/Request Commit Access/'
33-
34-
'false-positive':
35-
- '\bfalse[- ]positive\b'
36-
37-
'false-negative':
38-
- '\bfalse[- ]negative\b'

.github/new-prs-labeler.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -587,12 +587,6 @@ llvm:ir:
587587
- llvm/docs/LangRef.rst
588588
- llvm/unittests/IR/**
589589

590-
llvm:SandboxIR:
591-
- llvm/lib/SandboxIR/**
592-
- llvm/include/llvm/SandboxIR/**
593-
- llvm/docs/SandboxIR.md
594-
- llvm/unittests/SandboxIR/**
595-
596590
llvm:analysis:
597591
- llvm/lib/Analysis/**
598592
- llvm/include/llvm/Analysis/**
@@ -611,14 +605,6 @@ llvm:transforms:
611605
- llvm/test/Transforms/**
612606
- llvm/unittests/Transforms/**
613607

614-
llvm:instcombine:
615-
- llvm/lib/Analysis/InstructionSimplify.cpp
616-
- llvm/lib/Transforms/InstCombine/**
617-
- llvm/include/llvm/Transforms/InstCombine/
618-
- llvm/include/llvm/Analysis/InstructionSimplify.h
619-
- llvm/test/Transforms/InstCombine/**
620-
- llvm/test/Transforms/InstSimplify/**
621-
622608
clangd:
623609
- clang-tools-extra/clangd/**
624610

@@ -661,11 +647,6 @@ backend:DirectX:
661647

662648
backend:SPIR-V:
663649
- clang/lib/Driver/ToolChains/SPIRV.*
664-
- clang/lib/Sema/SemaSPIRV.cpp
665-
- clang/include/clang/Sema/SemaSPIRV.h
666-
- clang/include/clang/Basic/BuiltinsSPIRV.td
667-
- clang/test/CodeGenSPIRV/**
668-
- clang/test/SemaSPIRV/**
669650
- llvm/lib/Target/SPIRV/**
670651
- llvm/test/CodeGen/SPIRV/**
671652
- llvm/test/Frontend/HLSL/**
@@ -752,12 +733,6 @@ backend:RISC-V:
752733
- llvm/**/*riscv*
753734
- llvm/**/*RISCV*
754735

755-
backend:Xtensa:
756-
- clang/**/*xtensa*
757-
- clang/**/*Xtensa*
758-
- llvm/**/*xtensa*
759-
- llvm/**/*Xtensa*
760-
761736
lld:coff:
762737
- lld/**/COFF/**
763738
- lld/Common/**

.github/workflows/bandit.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

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

Lines changed: 0 additions & 75 deletions
This file was deleted.

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

Lines changed: 67 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -18,84 +18,95 @@ on:
1818
- '.github/workflows/containers/github-action-ci/**'
1919

2020
jobs:
21-
build-ci-container:
21+
# TODO(boomanaiden154): Switch this back to a single stage build when we can
22+
# run this on the self-hosted runners and don't have to do it this way to
23+
# avoid timeouts.
24+
build-ci-container-stage1:
2225
if: github.repository_owner == 'llvm'
23-
runs-on: depot-ubuntu-22.04-16
24-
outputs:
25-
container-name: ${{ steps.vars.outputs.container-name }}
26-
container-name-agent: ${{ steps.vars.outputs.container-name-agent }}
27-
container-name-tag: ${{ steps.vars.outputs.container-name-tag }}
28-
container-name-agent-tag: ${{ steps.vars.outputs.container-name-agent-tag }}
29-
container-filename: ${{ steps.vars.outputs.container-filename }}
30-
container-agent-filename: ${{ steps.vars.outputs.container-agent-filename }}
26+
runs-on: ubuntu-latest
3127
steps:
3228
- name: Checkout LLVM
3329
uses: actions/checkout@v4
3430
with:
3531
sparse-checkout: .github/workflows/containers/github-action-ci/
32+
- name: Change podman Root Direcotry
33+
run: |
34+
mkdir -p ~/.config/containers
35+
sudo mkdir -p /mnt/podman
36+
sudo chown `whoami`:`whoami` /mnt/podman
37+
cp ./.github/workflows/containers/github-action-ci/storage.conf ~/.config/containers/storage.conf
38+
podman info
39+
- name: Build container stage1
40+
working-directory: ./.github/workflows/containers/github-action-ci/
41+
run: |
42+
podman build -t stage1-toolchain --target stage1-toolchain -f stage1.Dockerfile .
43+
- name: Save container image
44+
run: |
45+
podman save stage1-toolchain > stage1-toolchain.tar
46+
- name: Upload container image
47+
uses: actions/upload-artifact@v4
48+
with:
49+
name: stage1-toolchain
50+
path: stage1-toolchain.tar
51+
retention-days: 1
52+
build-ci-container-stage2:
53+
if: github.repository_owner == 'llvm'
54+
runs-on: ubuntu-latest
55+
needs: build-ci-container-stage1
56+
permissions:
57+
packages: write
58+
steps:
3659
- name: Write Variables
3760
id: vars
3861
run: |
3962
tag=`date +%s`
4063
container_name="ghcr.io/$GITHUB_REPOSITORY_OWNER/ci-ubuntu-22.04"
4164
echo "container-name=$container_name" >> $GITHUB_OUTPUT
42-
echo "container-name-agent=$container_name-agent" >> $GITHUB_OUTPUT
4365
echo "container-name-tag=$container_name:$tag" >> $GITHUB_OUTPUT
44-
echo "container-name-agent-tag=$container_name-agent:$tag" >> $GITHUB_OUTPUT
45-
echo "container-filename=$(echo $container_name:$tag | sed -e 's/\//-/g' -e 's/:/-/g').tar" >> $GITHUB_OUTPUT
46-
echo "container-agent-filename=$(echo $container_name-agent:$tag | sed -e 's/\//-/g' -e 's/:/-/g').tar" >> $GITHUB_OUTPUT
47-
- name: Build container
48-
working-directory: ./.github/workflows/containers/github-action-ci/
49-
run: |
50-
podman build --target ci-container -t ${{ steps.vars.outputs.container-name-tag }} .
51-
podman build --target ci-container-agent -t ${{ steps.vars.outputs.container-name-agent-tag }} .
5266
53-
# Save the container so we have it in case the push fails. This also
54-
# allows us to separate the push step into a different job so we can
55-
# maintain minimal permissions while building the container.
56-
- name: Save container image
67+
- name: Checkout LLVM
68+
uses: actions/checkout@v4
69+
with:
70+
sparse-checkout: .github/workflows/containers/github-action-ci/
71+
72+
- name: Change podman Root Direcotry
5773
run: |
58-
podman save ${{ steps.vars.outputs.container-name-tag }} > ${{ steps.vars.outputs.container-filename }}
59-
podman save ${{ steps.vars.outputs.container-name-agent-tag }} > ${{ steps.vars.outputs.container-agent-filename }}
74+
mkdir -p ~/.config/containers
75+
sudo mkdir -p /mnt/podman
76+
sudo chown `whoami`:`whoami` /mnt/podman
77+
cp ./.github/workflows/containers/github-action-ci/storage.conf ~/.config/containers/storage.conf
78+
podman info
6079
61-
- name: Upload container image
62-
uses: actions/upload-artifact@v4
80+
# Download the container image into /mnt/podman rather than
81+
# $GITHUB_WORKSPACE to avoid space limitations on the default drive
82+
# and use the permissions setup for /mnt/podman.
83+
- name: Download stage1-toolchain
84+
uses: actions/download-artifact@v4
6385
with:
64-
name: container
65-
path: "*.tar"
66-
retention-days: 14
86+
name: stage1-toolchain
87+
path: /mnt/podman
88+
89+
- name: Load stage1-toolchain
90+
run: |
91+
podman load -i /mnt/podman/stage1-toolchain.tar
92+
93+
- name: Build Container
94+
working-directory: ./.github/workflows/containers/github-action-ci/
95+
run: |
96+
podman build -t ${{ steps.vars.outputs.container-name-tag }} -f stage2.Dockerfile .
97+
podman tag ${{ steps.vars.outputs.container-name-tag }} ${{ steps.vars.outputs.container-name }}:latest
6798
6899
- name: Test Container
69100
run: |
70-
for image in ${{ steps.vars.outputs.container-name-tag }}; do
71-
# Use --pull=never to ensure we are testing the just built image.
72-
podman run --pull=never --rm -it $image /usr/bin/bash -x -c 'cd $HOME && printf '\''#include <iostream>\nint main(int argc, char **argv) { std::cout << "Hello\\n"; }'\'' | clang++ -x c++ - && ./a.out | grep Hello'
101+
for image in ${{ steps.vars.outputs.container-name-tag }} ${{ steps.vars.outputs.container-name }}; do
102+
podman run --rm -it $image /usr/bin/bash -x -c 'printf '\''#include <iostream>\nint main(int argc, char **argv) { std::cout << "Hello\\n"; }'\'' | clang++ -x c++ - && ./a.out | grep Hello'
73103
done
74104
75-
push-ci-container:
76-
if: github.event_name == 'push'
77-
needs:
78-
- build-ci-container
79-
permissions:
80-
packages: write
81-
runs-on: ubuntu-24.04
82-
env:
83-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84-
steps:
85-
- name: Download container
86-
uses: actions/download-artifact@v4
87-
with:
88-
name: container
89-
90105
- name: Push Container
106+
if: github.event_name == 'push'
107+
env:
108+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91109
run: |
92-
podman load -i ${{ needs.build-ci-container.outputs.container-filename }}
93-
podman tag ${{ needs.build-ci-container.outputs.container-name-tag }} ${{ needs.build-ci-container.outputs.container-name }}:latest
94110
podman login -u ${{ github.actor }} -p $GITHUB_TOKEN ghcr.io
95-
podman push ${{ needs.build-ci-container.outputs.container-name-tag }}
96-
podman push ${{ needs.build-ci-container.outputs.container-name }}:latest
97-
98-
podman load -i ${{ needs.build-ci-container.outputs.container-agent-filename }}
99-
podman tag ${{ needs.build-ci-container.outputs.container-name-agent-tag }} ${{ needs.build-ci-container.outputs.container-name-agent }}:latest
100-
podman push ${{ needs.build-ci-container.outputs.container-name-agent-tag }}
101-
podman push ${{ needs.build-ci-container.outputs.container-name-agent }}:latest
111+
podman push ${{ steps.vars.outputs.container-name-tag }}
112+
podman push ${{ steps.vars.outputs.container-name }}:latest

0 commit comments

Comments
 (0)