Skip to content
Draft
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
b2f00eb
[Darwin][Driver] Prefer linking with toolchain's libc++ instead of sy…
tstellar Oct 12, 2025
91ccb95
XXX: testrelease builds which also hit this bug
tstellar Oct 12, 2025
a0bb37c
Fix build failure
tstellar Oct 12, 2025
19b27bb
XX: debug
tstellar Oct 13, 2025
ff8bd1f
Debug
tstellar Oct 14, 2025
6d91fcd
Fix/Debug
tstellar Oct 14, 2025
fcbd474
Update debug
tstellar Oct 14, 2025
9b5d6ca
Disable IOS
tstellar Oct 15, 2025
2cc4f3a
Disable local runtimes
tstellar Oct 15, 2025
5ce50f1
Fix
tstellar Oct 15, 2025
72aff35
Revert "Fix/Debug"
tstellar Oct 15, 2025
dfc3419
Revert "Fix build failure"
tstellar Oct 15, 2025
165a856
Revert "[Darwin][Driver] Prefer linking with toolchain's libc++ inste…
tstellar Oct 15, 2025
8f3dc34
Fixes
tstellar Oct 15, 2025
34884af
Revert "Disable IOS"
tstellar Oct 17, 2025
c57dc7b
Disable LTO for pull requests
tstellar Oct 17, 2025
89ed724
Remove parallel link job limit
tstellar Oct 17, 2025
679c693
Disable pgo
tstellar Oct 17, 2025
5dd5f27
Disable pgo
tstellar Oct 17, 2025
fe3f4cf
fixes
tstellar Oct 18, 2025
0772de8
Fix typo
tstellar Oct 18, 2025
770dd42
reduce targets
tstellar Oct 19, 2025
1475a2b
Fix typo
tstellar Oct 19, 2025
15e5a8a
Improve testing
tstellar Oct 20, 2025
5733232
Fix typo
tstellar Oct 20, 2025
a2c905a
Fix typo
tstellar Oct 20, 2025
1a5751d
Disable flang
tstellar Oct 22, 2025
513edbf
Fixes
tstellar Oct 22, 2025
396dc7e
Merge remote-tracking branch 'origin/main' into HEAD
tstellar Oct 27, 2025
2355bbc
Fixes
tstellar Oct 27, 2025
3c75aef
Fixes for x86 mac
tstellar Oct 28, 2025
219f731
Fix typo
tstellar Oct 28, 2025
b75f29b
Disable runtimes too
tstellar Oct 29, 2025
96f22f8
Disable mLIR
tstellar Oct 29, 2025
7bdb739
Disable runtimes
tstellar Oct 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 50 additions & 4 deletions .github/workflows/release-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@
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"
Expand All @@ -150,6 +149,8 @@
macos-13)
if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
build_runs_on="${{ inputs.runs-on }}"
# Disable MLIR on pull requests since that will be tested in a different job.
target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_PROJECTS='clang;lld;lldb;clang-tools-extra;polly'"
else
build_runs_on="macos-13-large"
fi
Expand All @@ -168,6 +169,23 @@
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-13 | 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

Expand Down Expand Up @@ -211,16 +229,15 @@
# 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
run: |
ninja -v -C ${{ steps.setup-stage.outputs.build-prefix }}/build stage2-package
release_dir=`find ${{ steps.setup-stage.outputs.build-prefix }}/build -iname 'stage2-bins'`
mv $release_dir/${{ needs.prepare.outputs.release-binary-filename }} .

- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: ${{ runner.os }}-${{ runner.arch }}-release-binary
Expand All @@ -235,9 +252,38 @@
run: |
ninja -C ${{ steps.setup-stage.outputs.build-prefix }}/build stage2-check-all

# Use a separate job to test some of the projects when running on the smaller runners.
test-release-package-mac-other-projects:
name: "Test Release Package Mac OS (other projects)"
needs:
- prepare
if: >-
github.event_name == 'pull_request' &&
needs.prepare.outputs.build-runs-on == 'macos-13'
runs-on: ${{ needs.prepare.outputs.build-runs-on }}
steps:
- name: Checkout LLVM
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
ref: ${{ needs.prepare.outputs.ref }}
- name: Install Ninja
Comment on lines +265 to +269

Check warning

Code scanning / CodeQL

Checkout of untrusted code in trusted context Medium

Potential unsafe checkout of untrusted pull request on privileged workflow.
uses: llvm/actions/install-ninja@a1ea791b03c8e61f53a0e66f2f73db283aa0f01e # main
- name: Configure
run: |
cmake -G Ninja -S llvm -B build \
${{ needs.prepare.outputs.target-cmake-flags }} \
-DLLVM_RELEASE_ENABLE_PROJECTS="mlir" \
-DLLVM_RELEASE_ENABLE_RUNTIMES="" \
-DLLVM_RELEASE_FINAL_STAGE_TARGETS="check-mlir" \
-C clang/cmake/caches/Release.cmake
- name: Build and Test
run: |
ninja -C build stage2-check-mlir


upload-release-binaries:
name: "Upload Release Binaries"
needs:
- prepare
- build-release-package
if: >-
Expand Down
Loading