|
54 | 54 | if: matrix.platform == 'macos-13' |
55 | 55 | shell: bash |
56 | 56 | run: | |
| 57 | + brew install llvm |
57 | 58 | python3 -m pip install conan |
58 | 59 | conan --version |
59 | 60 | mkdir -p ~/.conan2/profiles/ |
@@ -100,10 +101,18 @@ jobs: |
100 | 101 | run: | |
101 | 102 | conan install . --output-folder build --build=missing -o include_messaging=False |
102 | 103 |
|
103 | | - - name: Install Dependencies through Conan on MacOS |
104 | | - if: matrix.platform == 'macos-13' || matrix.platform == 'macos-latest' |
| 104 | + - name: Install Dependencies through Conan on ARM MacOS |
| 105 | + if: matrix.platform == 'macos-latest' |
| 106 | + shell: bash |
| 107 | + run: | |
| 108 | + conan install . --output-folder build --build=missing |
| 109 | +
|
| 110 | + - name: Install Dependencies through Conan on Intel MacOS |
| 111 | + if: matrix.platform == 'macos-13' |
105 | 112 | shell: bash |
106 | 113 | run: | |
| 114 | + CC=$(brew --prefix llvm)/bin/clang \ |
| 115 | + CXX=$(brew --prefix llvm)/bin/clang++ \ |
107 | 116 | conan install . --output-folder build --build=missing |
108 | 117 |
|
109 | 118 | - name: Install Dependencies through Conan on Linux <x86_64> |
@@ -139,16 +148,31 @@ jobs: |
139 | 148 | cmake -B . -S .. -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" -DCMAKE_BUILD_TYPE=Release |
140 | 149 | cmake --build . --config Release |
141 | 150 |
|
142 | | - - name: Build Unix |
143 | | - if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'ubuntu-24.04-arm' || matrix.platform == 'macos-13' || matrix.platform == 'macos-latest' |
| 151 | + - name: Build Non-Intel-Mac Unix |
| 152 | + if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'ubuntu-24.04-arm' || matrix.platform == 'macos-latest' |
144 | 153 | run: | |
145 | 154 | echo "working dir is $PWD" |
146 | | - |
147 | 155 | cd build |
148 | 156 | source conanbuild.sh |
149 | 157 | cmake -B . -S .. -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" -DCMAKE_BUILD_TYPE=Release |
150 | 158 | cmake --build . --config Release |
151 | 159 |
|
| 160 | + - name: Build Intel Mac |
| 161 | + if: matrix.platform == 'macos-13' |
| 162 | + run: | |
| 163 | + echo "working dir is $PWD" |
| 164 | + cd build |
| 165 | + source conanbuild.sh |
| 166 | + CC=$(brew --prefix llvm)/bin/clang \ |
| 167 | + CXX=$(brew --prefix llvm)/bin/clang++ \ |
| 168 | + cmake -B . -S .. -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" -DCMAKE_BUILD_TYPE=Release \ |
| 169 | + -DCMAKE_C_COMPILER=/usr/local/opt/llvm/bin/clang \ |
| 170 | + -DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++ \ |
| 171 | + -DCMAKE_AR=/usr/local/opt/llvm/bin/llvm-ar \ |
| 172 | + -DCMAKE_RANLIB=/usr/local/opt/llvm/bin/llvm-ranlib \ |
| 173 | + -DCMAKE_LINKER=/usr/local/opt/llvm/bin/ld.lld |
| 174 | + cmake --build . --config Release |
| 175 | +
|
152 | 176 | - name: Test Windows |
153 | 177 | if: matrix.platform == 'windows-latest' || matrix.platform == 'windows-11-arm' |
154 | 178 | run: | |
|
0 commit comments