11name : Release Binaries
2- # TEST
2+
33on :
44 workflow_dispatch :
55 inputs :
@@ -120,7 +120,6 @@ jobs:
120120 release_binary_basename="LLVM-$release_version-$RUNNER_OS-$RUNNER_ARCH"
121121 echo "release-binary-basename=$release_binary_basename" >> $GITHUB_OUTPUT
122122 echo "release-binary-filename=$release_binary_basename.tar.xz" >> $GITHUB_OUTPUT
123- enable_pgo=1
124123
125124 target="$RUNNER_OS-$RUNNER_ARCH"
126125
@@ -142,7 +141,6 @@ jobs:
142141 target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_LTO=OFF"
143142 fi
144143
145- echo "target-cmake-flags=$target_cmake_flags" >> $GITHUB_OUTPUT
146144 case "${{ inputs.runs-on }}" in
147145 ubuntu-22.04*)
148146 build_runs_on="depot-${{ inputs.runs-on }}-16"
@@ -169,11 +167,11 @@ jobs:
169167 build_runs_on=$test_runs_on
170168 ;;
171169 esac
172-
170+
173171 case "$build_runs_on" in
174172 # These runners cannot build the full release package faster than
175173 # the 6 hours timeout limit, so we need to use a configuration
176- # that builds more quickly.
174+ # that builds more quickly.
177175 macos-13 | macos-14)
178176 bootstrap_prefix="BOOTSTRAP"
179177 target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_LTO=OFF -DLLVM_RELEASE_ENABLE_PGO=OFF -D${bootstrap_prefix}-LLVM_TARGETS_TO_BUILD=Native"
@@ -183,44 +181,9 @@ jobs:
183181 ;;
184182 esac
185183
186- target="$RUNNER_OS-$RUNNER_ARCH"
187- # The hendrikmuhs/ccache-action action does not support installing sccache
188- # on arm64 Linux.
189- if [ "$target" = "Linux-ARM64" ]; then
190- echo ccache=ccache >> $GITHUB_OUTPUT
191- else
192- echo ccache=sccache >> $GITHUB_OUTPUT
193- fi
194-
195- # The macOS builds try to cross compile some libraries so we need to
196- # add extra CMake args to disable them.
197- # See https://github.com/llvm/llvm-project/issues/99767
198- if [ "$RUNNER_OS" = "macOS" ]; then
199- target_cmake_flags="$target_cmake_flags -D${bootstrap_prefix}_COMPILER_RT_ENABLE_IOS=OFF"
200- if [ "$RUNNER_ARCH" = "ARM64" ]; then
201- arches=arm64
202- else
203- arches=x86_64
204- # Disable Flang builds on macOS x86_64. The FortranLower library takes
205- # 2-3 hours to build on macOS, much slower than on Linux.
206- # The long build time causes the release build to time out on x86_64,
207- # so we need to disable flang there.
208- target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_PROJECTS='clang;lld;lldb;clang-tools-extra;polly;mlir'"
209- fi
210- target_cmake_flags="$target_cmake_flags -D${bootstrap_prefix}_DARWIN_osx_ARCHS=$arches -D${bootstrap_prefix}_DARWIN_osx_BUILTIN_ARCHS=$arches"
211- fi
212-
213- build_flang="true"
214-
215- if [ "$RUNNER_OS" = "Windows" ]; then
216- # The build times out on Windows, so we need to disable LTO.
217- target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_LTO=OFF"
218- fi
219-
220184 target_cmake_flags="$target_cmake_flags -D${bootstrap_prefix}_CPACK_PACKAGE_FILE_NAME=$release_binary_basename"
221185
222186 echo "target-cmake-flags=$target_cmake_flags" >> $GITHUB_OUTPUT
223- echo "build-flang=$build_flang" >> $GITHUB_OUTPUT
224187 echo "build-runs-on=$build_runs_on" >> $GITHUB_OUTPUT
225188 echo "test-runs-on=$test_runs_on" >> $GITHUB_OUTPUT
226189
@@ -264,8 +227,7 @@ jobs:
264227 # so we need to set some extra cmake flags to disable this.
265228 cmake -G Ninja -S llvm -B ${{ steps.setup-stage.outputs.build-prefix }}/build \
266229 ${{ needs.prepare.outputs.target-cmake-flags }} \
267- -C clang/cmake/caches/Release.cmake \
268- -DBOOTSTRAP_BOOTSTRAP_CPACK_PACKAGE_FILE_NAME="${{ needs.prepare.outputs.release-binary-basename }}"
230+ -C clang/cmake/caches/Release.cmake
269231
270232 - name : Build
271233 shell : bash
@@ -288,8 +250,9 @@ jobs:
288250 run : |
289251 ninja -C ${{ steps.setup-stage.outputs.build-prefix }}/build stage2-check-all
290252
291- test-release-package-mac-flang :
292- name : " Test Release Package Mac OS (flang)"
253+ # Use a separate job to test some of the projects when running on the smaller runners.
254+ test-release-package-mac-flang-mlir :
255+ name : " Test Release Package Mac OS (flang + mlir)"
293256 needs :
294257 - prepare
295258 # Flang is currently disabled on Mac due to
0 commit comments