Skip to content

Commit b8a6b3f

Browse files
undoing clang on intel mac; upgrading to MacOS15 on intel!
1 parent 2266368 commit b8a6b3f

File tree

3 files changed

+12
-41
lines changed

3 files changed

+12
-41
lines changed

.github/workflows/cd.yml

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
platform: [windows-latest, ubuntu-latest, ubuntu-24.04-arm, macos-13, macos-latest]
13-
#platform: [windows-latest, windows-11-arm, ubuntu-latest, ubuntu-24.04-arm, macos-13, macos-latest]
12+
platform: [windows-latest, ubuntu-latest, ubuntu-24.04-arm, macos-15-intel, macos-latest]
13+
#platform: [windows-latest, windows-11-arm, ubuntu-latest, ubuntu-24.04-arm, macos-15-intel, macos-latest]
1414

1515
runs-on: ${{ matrix.platform }}
1616

@@ -51,7 +51,7 @@ jobs:
5151
cp conan-profiles/CI-CD/Windows-ARM64_profile.txt $CONAN_HOME/profiles/default
5252
5353
- name: Install MacOS dependencies <x86_64>
54-
if: matrix.platform == 'macos-13'
54+
if: matrix.platform == 'macos-15-intel'
5555
shell: bash
5656
run: |
5757
brew install llvm
@@ -101,18 +101,10 @@ jobs:
101101
run: |
102102
conan install . --output-folder build --build=missing -o include_messaging=False
103103
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'
104+
- name: Install Dependencies through Conan on MacOS
105+
if: matrix.platform == 'macos-latest' || matrix.platform == 'macos-15-intel'
112106
shell: bash
113107
run: |
114-
CC=$(brew --prefix llvm)/bin/clang \
115-
CXX=$(brew --prefix llvm)/bin/clang++ \
116108
conan install . --output-folder build --build=missing
117109
118110
- name: Install Dependencies through Conan on Linux <x86_64>
@@ -149,32 +141,14 @@ jobs:
149141
cmake --build . --config Release
150142
151143
- name: Build Non-Intel-Mac Unix
152-
if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'ubuntu-24.04-arm' || matrix.platform == 'macos-latest'
144+
if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'ubuntu-24.04-arm' || matrix.platform == 'macos-15-intel' || matrix.platform == 'macos-latest'
153145
run: |
154146
echo "working dir is $PWD"
155147
cd build
156148
source conanbuild.sh
157149
cmake -B . -S .. -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" -DCMAKE_BUILD_TYPE=Release
158150
cmake --build . --config Release
159151
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-
-DCMAKE_OSX_SYSROOT="" \
175-
-DCMAKE_OSX_DEPLOYMENT_TARGET=""
176-
cmake --build . --config Release
177-
178152
- name: Test Windows
179153
if: matrix.platform == 'windows-latest' || matrix.platform == 'windows-11-arm'
180154
run: |
@@ -183,7 +157,7 @@ jobs:
183157
./bin/SundialsSolverStandalone_x64 || true
184158
185159
- name: Test Unix
186-
if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'ubuntu-24.04-arm' || matrix.platform == 'macos-13' || matrix.platform == 'macos-latest'
160+
if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'ubuntu-24.04-arm' || matrix.platform == 'macos-15-intel' || matrix.platform == 'macos-latest'
187161
run: |
188162
cd build
189163
@@ -194,7 +168,7 @@ jobs:
194168
195169
196170
- name: fix Macos shared object paths
197-
if: matrix.platform == 'macos-13' || matrix.platform == 'macos-latest'
171+
if: matrix.platform == 'macos-15-intel' || matrix.platform == 'macos-latest'
198172
shell: bash
199173
run: |
200174
mkdir build/upload
@@ -239,7 +213,7 @@ jobs:
239213
cd ../..
240214
241215
- name: Upload Intel Macos binaries
242-
if: matrix.platform == 'macos-13'
216+
if: matrix.platform == 'macos-15-intel'
243217
uses: actions/upload-artifact@v4
244218
with:
245219
name: macos_x86_64.tgz

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM debian:bookworm-slim AS build
22
SHELL ["/bin/bash", "-c"]
33

44
RUN apt-get -y update && apt-get install -y apt-utils && apt-get remove --purge gcc
5-
RUN apt-get install -y -qq -o=Dpkg::Use-Pty=0 clang mold ninja-build cmake libc++-dev libc++abi-dev libcurl4-openssl-dev \
5+
RUN apt-get install -y -qq -o=Dpkg::Use-Pty=0 clang mold ninja-build cmake libc++-16-dev libc++abi-16-dev libcurl4-openssl-dev \
66
git curl wget ca-certificates python3 python3-pip
77
RUN rm $(which gcc) || true
88
RUN rm $(which g++) || true
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
[settings]
22
arch=x86_64
33
build_type=Release
4-
compiler=clang
4+
compiler=apple-clang
55
compiler.cppstd=20
66
compiler.libcxx=libc++
77
compiler.version=19
8-
os=Macos
9-
10-
[conf]
11-
tools.build:compiler_executables={"c": "/usr/local/opt/llvm/bin/clang", "cpp": "/usr/local/opt/llvm/bin/clang++"}
8+
os=Macos

0 commit comments

Comments
 (0)