Skip to content

Commit 9e28d0a

Browse files
authored
Merge branch 'release/20.x' into AVX10
2 parents f816bd3 + 2c142b2 commit 9e28d0a

32 files changed

+529
-235
lines changed

.github/workflows/clang-tests.yml

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

.github/workflows/libclc-tests.yml

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

.github/workflows/lld-tests.yml

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

.github/workflows/lldb-tests.yml

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

.github/workflows/llvm-tests.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ on:
1111
paths:
1212
- 'llvm/**'
1313
- '.github/workflows/llvm-tests.yml'
14-
- '.github/workflows/llvm-project-tests.yml'
1514
pull_request:
1615
branches:
1716
- 'release/**'
1817
paths:
1918
- 'llvm/**'
2019
- '.github/workflows/llvm-tests.yml'
21-
- '.github/workflows/llvm-project-tests.yml'
2220

2321
concurrency:
2422
# Skip intermediate builds: always.
@@ -27,14 +25,6 @@ concurrency:
2725
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
2826

2927
jobs:
30-
check-all:
31-
if: github.repository_owner == 'llvm'
32-
name: Build and Test
33-
uses: ./.github/workflows/llvm-project-tests.yml
34-
with:
35-
build_target: check-all
36-
projects: clang;lld;libclc;lldb
37-
3828
abi-dump-setup:
3929
if: github.repository_owner == 'llvm'
4030
runs-on: ubuntu-latest

.github/workflows/premerge.yaml

Lines changed: 73 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ permissions:
55

66
on:
77
pull_request:
8-
paths:
9-
- .github/workflows/premerge.yaml
108
push:
119
branches:
1210
- 'main'
11+
- 'release/**'
1312

1413
jobs:
1514
premerge-checks-linux:
16-
if: github.repository_owner == 'llvm'
15+
if: false && github.repository_owner == 'llvm'
1716
runs-on: llvm-premerge-linux-runners
1817
concurrency:
1918
group: ${{ github.workflow }}-linux-${{ github.event.pull_request.number || github.sha }}
@@ -72,7 +71,7 @@ jobs:
7271
./.ci/monolithic-linux.sh "$(echo ${linux_projects} | tr ' ' ';')" "$(echo ${linux_check_targets})" "$(echo ${linux_runtimes} | tr ' ' ';')" "$(echo ${linux_runtime_check_targets})"
7372
7473
premerge-checks-windows:
75-
if: github.repository_owner == 'llvm'
74+
if: false && github.repository_owner == 'llvm'
7675
runs-on: llvm-premerge-windows-runners
7776
concurrency:
7877
group: ${{ github.workflow }}-windows-${{ github.event.pull_request.number || github.sha }}
@@ -132,3 +131,73 @@ jobs:
132131
call C:\\BuildTools\\Common7\\Tools\\VsDevCmd.bat -arch=amd64 -host_arch=amd64
133132
bash .ci/monolithic-windows.sh "${{ steps.vars.outputs.windows-projects }}" "${{ steps.vars.outputs.windows-check-targets }}"
134133
134+
permerge-check-macos:
135+
runs-on: macos-14
136+
concurrency:
137+
group: ${{ github.workflow }}-macos-${{ github.event.pull_request.number || github.sha }}
138+
cancel-in-progress: true
139+
if: >-
140+
github.repository_owner == 'llvm' &&
141+
(startswith(github.ref_name, 'release/') ||
142+
startswith(github.base_ref, 'release/'))
143+
steps:
144+
- name: Checkout LLVM
145+
uses: actions/checkout@v4
146+
with:
147+
fetch-depth: 2
148+
- name: Setup ccache
149+
uses: hendrikmuhs/[email protected]
150+
with:
151+
max-size: "2000M"
152+
- name: Install Ninja
153+
uses: llvm/actions/install-ninja@main
154+
- name: Build and Test
155+
run: |
156+
modified_files=$(git diff --name-only HEAD~1...HEAD)
157+
modified_dirs=$(echo "$modified_files" | cut -d'/' -f1 | sort -u)
158+
159+
echo $modified_files
160+
echo $modified_dirs
161+
162+
. ./.ci/compute-projects.sh
163+
164+
all_projects="clang clang-tools-extra lld lldb llvm mlir"
165+
modified_projects="$(keep-modified-projects ${all_projects})"
166+
167+
# We have to disable the runtimes builds due to https://github.com/llvm/llvm-project/issues/90568
168+
# and the lldb tests depend on libcxx, so we need to skip them.
169+
mac_check_targets=$(check-targets ${modified_projects} | sort | uniq | tr '\n' ' ' | sed -e 's/check-lldb //g')
170+
mac_projects=$(add-dependencies ${modified_projects} | sort | uniq | tr '\n' ' ')
171+
172+
mac_runtimes_to_test=$(compute-runtimes-to-test ${modified_projects})
173+
mac_runtime_check_targets=$(check-targets ${mac_runtimes_to_test} | sort | uniq | tr '\n' ' ')
174+
mac_runtimes=$(echo ${mac_runtimes_to_test} | tr ' ' '\n' | sort | uniq | tr '\n' ' ')
175+
176+
if [[ "${mac_projects}" == "" ]]; then
177+
echo "No projects to build"
178+
exit 0
179+
fi
180+
181+
echo "Projects to test: ${modified_projects}"
182+
echo "Runtimes to test: ${mac_runtimes_to_test}"
183+
echo "Building projects: ${mac_projects}"
184+
echo "Running project checks targets: ${mac_check_targets}"
185+
echo "Building runtimes: ${mac_runtimes}"
186+
echo "Running runtimes checks targets: ${mac_runtime_check_targets}"
187+
188+
# -DLLVM_DISABLE_ASSEMBLY_FILES=ON is for
189+
# https://github.com/llvm/llvm-project/issues/81967
190+
# Disable sharding in lit so that the LIT_XFAIL environment var works.
191+
cmake -G Ninja \
192+
-B build \
193+
-S llvm \
194+
-DLLVM_ENABLE_PROJECTS="$(echo ${mac_projects} | tr ' ' ';')" \
195+
-DLLVM_DISABLE_ASSEMBLY_FILES=ON \
196+
-DCMAKE_BUILD_TYPE=Release \
197+
-DLLDB_INCLUDE_TESTS=OFF \
198+
-DLLVM_ENABLE_ASSERTIONS=ON \
199+
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
200+
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
201+
202+
# The libcxx tests fail, so we are skipping the runtime targets.
203+
ninja -C build $mac_check_targets

.github/workflows/release-binaries.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,6 @@ jobs:
226226
id: setup-stage
227227
uses: ./workflows-main/.github/workflows/release-binaries-setup-stage
228228

229-
- name: Setup sccache
230-
uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9
231-
with:
232-
# Default to 2G to workaround: https://github.com/hendrikmuhs/ccache-action/issues/174
233-
max-size: 2G
234-
key: ${{ needs.prepare.outputs.ccache }}-${{ runner.os }}-${{ runner.arch }}-release
235-
variant: ${{ needs.prepare.outputs.ccache }}
236-
237229
- name: Configure
238230
id: build
239231
shell: bash
@@ -246,9 +238,8 @@ jobs:
246238
${{ needs.prepare.outputs.target-cmake-flags }} \
247239
-C clang/cmake/caches/Release.cmake \
248240
-DBOOTSTRAP_LLVM_PARALLEL_LINK_JOBS=1 \
249-
-DBOOTSTRAP_CPACK_PACKAGE_FILE_NAME="${{ needs.prepare.outputs.release-binary-basename }}" \
250-
-DCMAKE_C_COMPILER_LAUNCHER=$CCACHE_BIN \
251-
-DCMAKE_CXX_COMPILER_LAUNCHER=$CCACHE_BIN
241+
-DBOOTSTRAP_CPACK_PACKAGE_FILE_NAME="${{ needs.prepare.outputs.release-binary-basename }}"
242+
252243
- name: Build
253244
shell: bash
254245
run: |

0 commit comments

Comments
 (0)