Skip to content

Commit 70d281d

Browse files
committed
github: Merge the single-arch macos toolchains into an universal one
1 parent c9df174 commit 70d281d

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

.github/workflows/build.yml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,49 @@ jobs:
337337
llvm-mingw-*.tar.xz
338338
retention-days: 7
339339

340+
macos-universal:
341+
needs: [macos]
342+
runs-on: macos-latest
343+
steps:
344+
- uses: actions/checkout@v4
345+
- uses: actions/download-artifact@v4
346+
with:
347+
pattern: macos-ucrt-*-toolchain
348+
merge-multiple: true
349+
- name: Merge
350+
run: |
351+
./merge-macos-universal.sh llvm-mingw-*-macos-arm64.tar.xz llvm-mingw-*-macos-x86_64.tar.xz
352+
- uses: actions/upload-artifact@v4
353+
with:
354+
name: macos-ucrt-universal-toolchain
355+
path: |
356+
llvm-mingw-*-universal.tar.xz
357+
retention-days: 7
358+
359+
macos-test:
360+
needs: [macos-universal]
361+
strategy:
362+
fail-fast: false
363+
matrix:
364+
runner:
365+
- macos-13
366+
- macos-15
367+
runs-on: ${{matrix.runner}}
368+
steps:
369+
- uses: actions/checkout@v4
370+
- uses: actions/download-artifact@v4
371+
with:
372+
name: macos-ucrt-universal-toolchain
373+
- name: Unpack toolchain
374+
run: |
375+
tar -Jxf llvm-mingw-*.tar.xz
376+
rm llvm-mingw-*.tar.xz
377+
mv llvm-mingw* llvm-mingw
378+
- name: Test
379+
run: |
380+
./test-libcxx-module.sh $(pwd)/llvm-mingw
381+
./run-tests.sh $(pwd)/llvm-mingw
382+
340383
# Test building the toolchain on msys2 (in the mingw64 and clang64
341384
# environments). The binaries built here rely on the runtime libraries from
342385
# the host environment (libstdc++ or libc++).
@@ -795,7 +838,7 @@ jobs:
795838
if: github.event_name == 'schedule'
796839
permissions:
797840
contents: write
798-
needs: [linux, linux-cross-x86_64, macos, linux-cross-windows, test-toolchain, linux-test-cross-build-ffmpeg, test-ffmpeg]
841+
needs: [linux, linux-cross-x86_64, macos-universal, macos-test, linux-cross-windows, test-toolchain, linux-test-cross-build-ffmpeg, test-ffmpeg]
799842
runs-on: ubuntu-latest
800843
steps:
801844
- name: Download all artifacts
@@ -806,6 +849,7 @@ jobs:
806849
rm -rf msys2*
807850
rm -rf linux-stage1-*
808851
rm -rf macos-llvm*
852+
rm -rf macos-*-arm64-toolchain macos-*-x86_64-toolchain
809853
rm -rf profile*
810854
mv *-toolchain/*.zip *-toolchain/*.tar.xz .
811855
- name: Upload binaries

0 commit comments

Comments
 (0)