Skip to content

Commit 770dd42

Browse files
committed
reduce targets
1 parent 0772de8 commit 770dd42

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/release-binaries.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ jobs:
131131
macos-13)
132132
if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
133133
build_runs_on="${{ inputs.runs-on }}"
134-
enable_pgo=0
135-
target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_LTO=OFF"
134+
target_cmake_flags="$target_cmake_flags
136135
else
137136
build_runs_on="macos-13-large"
138137
fi
@@ -153,6 +152,19 @@ jobs:
153152
build_runs_on=$test_runs_on
154153
;;
155154
esac
155+
156+
case "$build_runs_on" in
157+
# These runners cannot build the full release package faster than
158+
# the 6 hours timeout limit, so we need to use a configuration
159+
# that builds more quickly.
160+
macos-13 | macos-14)
161+
bootstrap_prefix="BOOTSTRAP"
162+
target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_LTO=OFF -DLLVM_RELEASE_ENABLE_PGO=OFF -D${bootstrap_prefix}-LLVM_TARGETS_TO_BUILD=Native"
163+
;;
164+
*)
165+
bootstrap_prefix="BOOTSTRAP_BOOTSTRAP"
166+
;;
167+
esac
156168
157169
if [ "$enable_pgo" -eq 1 ]; then
158170
bootstrap_prefix="BOOTSTRAP_BOOTSTRAP"

0 commit comments

Comments
 (0)