Skip to content

Commit 4b87c5f

Browse files
committed
macos-15
1 parent cef691e commit 4b87c5f

File tree

4 files changed

+31
-31
lines changed

4 files changed

+31
-31
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
fail-fast: False
3030
matrix:
3131
os: [ubuntu-latest, windows-latest, macos-15-intel, macos-15]
32-
#os: [macos-15-intel, macos-15]
32+
3333
env:
3434
BUILD_TYPE: Release
3535
# SANITIZE: true # uncomment to sanitize
@@ -163,22 +163,6 @@ jobs:
163163
if: runner.os == 'Windows'
164164
run: git config --system core.longpaths true
165165

166-
- name: Set MacOS deployment target (MacOS)
167-
if: runner.os == 'macOS'
168-
uses: actions/github-script@v7
169-
with:
170-
script: |
171-
if ('${{ runner.arch }}' == 'X64') {
172-
target = '10.15';
173-
arch='x86_64';
174-
}
175-
else {
176-
target = '12.0';
177-
arch='armv8';
178-
}
179-
core.exportVariable('MACOSX_DEPLOYMENT_TARGET', target);
180-
core.exportVariable('CMAKE_OSX_DEPLOYMENT_TARGET', target);
181-
core.exportVariable('PKG_ARCH', arch);
182166

183167
#***********************************#
184168
# Build steps (one per platform...) #

conan-profiles/conan-profile-macOS-ARM64

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ include(conan-profile-common)
33
[settings]
44
os=Macos
55
# 14.2 is required by opensubdiv for metal
6-
os.version=14.2
6+
os.version=15.6
77
arch=armv8
88
compiler=apple-clang
9-
compiler.version=15
9+
compiler.version=17
1010
compiler.cppstd={{ os.getenv("CXX_VERSION") }}
1111
compiler.libcxx=libc++
1212

@@ -18,8 +18,14 @@ minizip-ng/*:with_libcomp=False
1818
embree/*:shared=True
1919

2020
[buildenv]
21-
CXX=clang++
22-
CC=clang
21+
PKG_ARCH=armv8
22+
# 14.2 is required by opensubdiv for metal
23+
# See also macos_var.cmake
24+
MACOSX_DEPLOYMENT_TARGET=14.2
2325

2426
[conf]
25-
&:tools.build:cxxflags=["-O3"]
27+
&:tools.build:cxxflags+=["-O3"]
28+
tools.cmake.cmaketoolchain:user_toolchain+={{profile_dir}}/macos_var.cmake
29+
openvdb/*:tools.build:cxxflags+=["-Wno-error", "-Wno-missing-template-arg-list-after-template-kw"]
30+
31+
# vim: ft=conf

conan-profiles/conan-profile-macOS-X64

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ include(conan-profile-common)
22

33
[settings]
44
os=Macos
5-
os.version=10.15
5+
os.version=15.6
66
arch=x86_64
77
compiler=apple-clang
8-
compiler.version=14.0
8+
compiler.version=17
99
compiler.cppstd={{ os.getenv("CXX_VERSION") }}
1010
compiler.libcxx=libc++
1111

12-
spdlog/*:compiler=clang
13-
spdlog/*:compiler.version=20
14-
spdlog/*:compiler.cppstd={{ os.getenv("CXX_VERSION") }}
15-
spdlog/*:compiler.libcxx=libc++
12+
#spdlog/*:compiler=clang
13+
#spdlog/*:compiler.version=20
14+
#spdlog/*:compiler.cppstd={{ os.getenv("CXX_VERSION") }}
15+
#spdlog/*:compiler.libcxx=libc++
1616

1717
[options]
1818
minizip-ng/*:with_zlib=True
@@ -22,9 +22,16 @@ opensubdiv/*:with_metal=False
2222
embree/*:shared=True
2323

2424
[buildenv]
25-
CXX=clang++
26-
CC=clang
25+
PKG_ARCH=x86_64
26+
# 14.2 is required by opensubdiv for metal
27+
# See also macos_var.cmake
28+
MACOSX_DEPLOYMENT_TARGET=14.2
2729

2830
[conf]
29-
&:tools.build:cxxflags+=["-ftree-vectorize", "-march=x86-64-v3", "-O3", "-mno-avx2"]
31+
#&:tools.build:cxxflags+=["-ftree-vectorize", "-march=x86-64-v3", "-O3", "-mno-avx2"]
3032
# NB: Github MacOS X64 runner does not support avx2 nor avx512
33+
&:tools.build:cxxflags+=["-ftree-vectorize", "-march=x86-64-v3", "-O3"]
34+
tools.cmake.cmaketoolchain:user_toolchain+={{profile_dir}}/macos_var.cmake
35+
openvdb/*:tools.build:cxxflags+=["-Wno-error", "-Wno-missing-template-arg-list-after-template-kw"]
36+
37+
# vim: ft=conf

conan-profiles/macos_var.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This file injects CMake variables in MacOS build
2+
# 14.2 is required by opensubdiv for metal
3+
set(CMAKE_OSX_DEPLOYMENT_TARGET "14.2" CACHE STRING "")

0 commit comments

Comments
 (0)