Skip to content

workflows/release-binaries: Build less projects on macos-13 runner #125788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

tstellar
Copy link
Collaborator

@tstellar tstellar commented Feb 5, 2025

We are currently hitting timeouts when using the GitHub hosted runners, so disable the flang, polly, and bolt projects to reduce build times.

We are currently hitting timeouts when using the GitHub hosted runners,
so disable the flang, polly, and bolt projects to reduce build times.
@tstellar tstellar requested a review from tru February 5, 2025 15:46
@tstellar tstellar marked this pull request as ready for review February 5, 2025 15:46
@llvmbot
Copy link
Member

llvmbot commented Feb 5, 2025

@llvm/pr-subscribers-github-workflow

Author: Tom Stellard (tstellar)

Changes

We are currently hitting timeouts when using the GitHub hosted runners, so disable the flang, polly, and bolt projects to reduce build times.


Full diff: https://github.com/llvm/llvm-project/pull/125788.diff

1 Files Affected:

  • (modified) .github/workflows/release-binaries.yml (+4-1)
diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml
index 204ee6405382fc..42ed2dd34552d3 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -149,7 +149,6 @@ jobs:
           target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_LTO=OFF"
         fi
 
-        echo "target-cmake-flags=$target_cmake_flags" >> $GITHUB_OUTPUT
         echo "build-flang=$build_flang" >> $GITHUB_OUTPUT
         case "${{ inputs.runs-on }}" in
           ubuntu-22.04*)
@@ -163,6 +162,9 @@ jobs:
               build_runs_on="macos-13-large"
             fi
             test_runs_on="${{ inputs.runs-on }}"
+            # These runners hit timeouts building all of LLVM, so we need to
+            # limit the projects that we build.
+            target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_PROJECTS='clang;lld;lldb;clang-tools-extra;mlir'"
             ;;
           macos-14)
             if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
@@ -177,6 +179,7 @@ jobs:
             build_runs_on=$test_runs_on
             ;;
         esac
+        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
 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants