7171 # Uses a macOS amd image here
7272 # https://github.com/actions/runner-images
7373 runner : macos-13
74- os-cmake-args : ' -DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -flto -ffunction-sections -fdata-sections" -DCMAKE_EXE_LINKER_FLAGS="-Wl,-dead_strip" -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 ${POSIX_CMAKE_ARGS} ${MACOS_CMAKE_ARGS} -DLLVM_TARGETS_TO_BUILD=X86'
74+ os-cmake-args : ' -DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -flto -ffunction-sections -fdata-sections" -DCMAKE_EXE_LINKER_FLAGS="-Wl,-dead_strip" ${POSIX_CMAKE_ARGS} ${MACOS_CMAKE_ARGS} -DLLVM_TARGETS_TO_BUILD=X86'
7575 build-args : ' -j$(sysctl -n hw.ncpu)'
7676 bindir : ' /build/bin'
7777 dotexe : ' '
8181 # Uses a macOS arm image here
8282 # https://github.com/actions/runner-images
8383 runner : macos-14
84- os-cmake-args : ' -DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -flto" -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 ${POSIX_CMAKE_ARGS} ${MACOS_CMAKE_ARGS} -DLLVM_TARGETS_TO_BUILD=AArch64'
84+ os-cmake-args : ' -DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -flto -ffunction-sections -fdata-sections " -DCMAKE_EXE_LINKER_FLAGS="-Wl,-dead_strip" ${POSIX_CMAKE_ARGS} ${MACOS_CMAKE_ARGS} -DLLVM_TARGETS_TO_BUILD=AArch64'
8585 build-args : ' -j$(sysctl -n hw.ncpu)'
8686 bindir : ' /build/bin'
8787 dotexe : ' '
@@ -103,23 +103,19 @@ jobs:
103103 # https://github.com/llvm/llvm-project/issues/106521
104104 - clang-version : 17
105105 os : macos-arm
106- # 19, 20 builds but is not portable on mac arm
107- # clang-tidy fails with
108- # `Library not loaded: /usr/lib/libz.1.dylib`
109- # tried: '/usr/lib/libz.1.dylib' (no such file)
110- - clang-version : 19
111- os : macos-arm
112- - clang-version : 20
113- os : macos-arm
114106 runs-on : ${{ matrix.runner }}
115107 env :
116108 COMMON_CMAKE_ARGS : ' -DBUILD_SHARED_LIBS=OFF -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra"'
117109 LINUX_CMAKE_ARGS : ' -DCMAKE_CXX_COMPILER=g++-10 -DCMAKE_C_COMPILER=gcc-10'
118- MACOS_CMAKE_ARGS : ' -DCMAKE_CXX_COMPILER=g++-14 -DCMAKE_C_COMPILER=gcc-14'
110+ MACOS_CMAKE_ARGS : ' -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 - DCMAKE_CXX_COMPILER=g++-14 -DCMAKE_C_COMPILER=gcc-14 -DLLVM_ENABLE_ZSTD=OFF -DLLVM_ENABLE_ZLIB=OFF '
119111 POSIX_CMAKE_ARGS : ' -DCMAKE_BUILD_TYPE=MinSizeRel'
120112 RELEASE : ' ${{ matrix.release }}'
121113 suffix : ' ${{ matrix.clang-version }}_${{ matrix.os }}-${{ matrix.arch }}'
122114 steps :
115+ - name : print system info on macos and linux
116+ run : |
117+ uname -a || systeminfo
118+ if : ${{ matrix.os != 'windows' }}
123119 - name : download patches
124120 # we download a tarball of this repo, as the presence of a .git directory leaks
125121 # the commit hash of this repository into the clang binaries
@@ -184,7 +180,7 @@ jobs:
184180 shell : bash
185181 run : patch ${{ matrix.release }}/llvm/cmake/config-ix.cmake windows-clang-9-10-trivially-copyable-mismatch.patch
186182 - name : Patch cmake implicit link libraries on macosx
187- if : ${{ matrix.os == 'macosx' }}
183+ if : ${{ matrix.os == 'macosx' || matrix.os == 'macos-arm' }}
188184 shell : bash
189185 run : |
190186 BREW_PREFIX=$(brew --prefix)
0 commit comments