Skip to content

Commit cf2a27f

Browse files
committed
workflows/release-binaries: Limit the number of projects built for pull requests
The github hosted runners can't do a full build before the 6 hour timeout, so build less projects to give the build a chance to finish. We use more powerful runners for the actual release builds, so we just need to make this change for pull requests where we use the slower github hosted runners.
1 parent 7371f69 commit cf2a27f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/release-binaries.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ jobs:
145145
target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_PROJECTS='clang;lld;lldb;clang-tools-extra;polly;mlir'"
146146
fi
147147
target_cmake_flags="$target_cmake_flags -DBOOTSTRAP_BOOTSTRAP_DARWIN_osx_ARCHS=$arches -DBOOTSTRAP_BOOTSTRAP_DARWIN_osx_BUILTIN_ARCHS=$arches"
148+
149+
# For pull requests we use the github-hosted runners, which aren't
150+
# powerful enough to do a full build, so build less projects so that
151+
# the build has a chance to succeed.
152+
target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_PROJECTS='clang;lld'"
148153
fi
149154
150155
build_flang="true"

0 commit comments

Comments
 (0)