Skip to content

Commit 15e5a8a

Browse files
committed
Improve testing
1 parent 1475a2b commit 15e5a8a

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/release-binaries.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ jobs:
156156
# that builds more quickly.
157157
macos-13 | macos-14)
158158
bootstrap_prefix="BOOTSTRAP"
159-
target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_LTO=OFF -DLLVM_RELEASE_ENABLE_PGO=OFF -D${bootstrap_prefix}-LLVM_TARGETS_TO_BUILD=Native"
159+
target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_LTO=OFF -DLLVM_RELEASE_ENABLE_PGO=OFF -D${bootstrap_prefix}-LLVM_TARGETS_TO_BUILD=Native -DLLVM_RELEASE_ENABLE_PROJECTS="clang;lld;lldb;clang-tools-extra;polly"
160160
;;
161161
*)
162162
bootstrap_prefix="BOOTSTRAP_BOOTSTRAP"
@@ -269,6 +269,34 @@ jobs:
269269
run: |
270270
ninja -C ${{ steps.setup-stage.outputs.build-prefix }}/build stage2-check-all
271271
272+
test-release-package-mac-flang:
273+
name: "Test Release Package Mac OS (flang)"
274+
needs:
275+
- prepare
276+
if: >-
277+
github.event_name == 'pull_request' &&
278+
(needs.prepare.outputs.build-runs-on == 'macos-13' ||
279+
needs.prepare.outputs.build-runs-on == 'macos-14')
280+
runs-on: ${{ needs.prepare.outputs.build-runs-on }}
281+
steps:
282+
- name: Checkout LLVM
283+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
284+
with:
285+
ref: ${{ needs.prepare.outputs.ref }}
286+
- name: Install Ninja
287+
uses: llvm/actions/install-ninja@a1ea791b03c8e61f53a0e66f2f73db283aa0f01e # main
288+
- name: Configure
289+
run: |
290+
cmake -G Ninja -S llvm -B build \
291+
${{ needs.prepare.outputs.target-cmake-flags }} \
292+
-DLLVM_RELEASE_ENABLE_PROJECTS="clang;mlir;flang" \
293+
-DLLVM_RELEASE_FINAL_STAGE_TARGETS="check-flang;check-mlir" \
294+
-C clang/cmake/caches/Release.cmake
295+
- name: Build and Test
296+
run: |
297+
ninja -C build stage2-check-flang stage2-check-mlir
298+
299+
272300
upload-release-binaries:
273301
name: "Upload Release Binaries"
274302
needs:

0 commit comments

Comments
 (0)