aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2025-11-03 11:12:23 -0800
committerGitHub <noreply@github.com>2025-11-03 11:12:23 -0800
commit0a28c07f2f51b6c94546f8e8e59c4e934ba6c520 (patch)
treecfb6ad192c8e1218884545d65cf8da4a261b53a6
parent8fd1bf2f8c9e6e7c4bc5f6915a9d52bb3672601b (diff)
downloadllvm-0a28c07f2f51b6c94546f8e8e59c4e934ba6c520.zip
llvm-0a28c07f2f51b6c94546f8e8e59c4e934ba6c520.tar.gz
llvm-0a28c07f2f51b6c94546f8e8e59c4e934ba6c520.tar.bz2
workflows/release-binaries: Disable LTO/PGO for testing macOS job in PRs (#165801)
When a PR is submitted the macos-14 workflow will run with LTO/PGO disabled. This makes it possible to run the workflow on the free runners with the six hour timeout and will allow us to test the workflow on pull requests.
-rw-r--r--.github/workflows/release-binaries.yml21
1 files changed, 18 insertions, 3 deletions
diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml
index acc4723..25f426b 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -138,7 +138,6 @@ jobs:
target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_LTO=OFF"
fi
- echo "target-cmake-flags=$target_cmake_flags" >> $GITHUB_OUTPUT
case "${{ inputs.runs-on }}" in
ubuntu-22.04*)
build_runs_on="depot-${{ inputs.runs-on }}-16"
@@ -157,6 +156,23 @@ jobs:
build_runs_on=$test_runs_on
;;
esac
+
+ case "$build_runs_on" in
+ # These runners cannot build the full release package faster than
+ # the 6 hours timeout limit, so we need to use a configuration
+ # that builds more quickly.
+ macos-14)
+ bootstrap_prefix="BOOTSTRAP"
+ target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_LTO=OFF -DLLVM_RELEASE_ENABLE_PGO=OFF"
+ ;;
+ *)
+ bootstrap_prefix="BOOTSTRAP_BOOTSTRAP"
+ ;;
+ esac
+
+ target_cmake_flags="$target_cmake_flags -D${bootstrap_prefix}_CPACK_PACKAGE_FILE_NAME=$release_binary_basename"
+
+ echo "target-cmake-flags=$target_cmake_flags" >> $GITHUB_OUTPUT
echo "build-runs-on=$build_runs_on" >> $GITHUB_OUTPUT
echo "test-runs-on=$test_runs_on" >> $GITHUB_OUTPUT
@@ -200,8 +216,7 @@ jobs:
# so we need to set some extra cmake flags to disable this.
cmake -G Ninja -S llvm -B ${{ steps.setup-stage.outputs.build-prefix }}/build \
${{ needs.prepare.outputs.target-cmake-flags }} \
- -C clang/cmake/caches/Release.cmake \
- -DBOOTSTRAP_BOOTSTRAP_CPACK_PACKAGE_FILE_NAME="${{ needs.prepare.outputs.release-binary-basename }}"
+ -C clang/cmake/caches/Release.cmake
- name: Build
shell: bash