Skip to content

Commit 18ebdcc

Browse files
committed
Targeting mac builds to use 10.14 SDK
1 parent 6aa75af commit 18ebdcc

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.gitlab-ci.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,19 @@ mac-builder:
3131
artifacts:
3232
expire_in: 6 months
3333
paths:
34-
- build/install-x64/*
34+
- build/install-x64/*
3535
script:
3636
- mkdir -p build
37-
- cmake -B build -S . -DCMAKE_EXE_LINKER_FLAGS="-stdlib=libc++" -DCMAKE_SHARED_LINKER_FLAGS="-stdlib=libc++" -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -D"CMAKE_INSTALL_PREFIX:PATH=build/install-x64" -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -D"CMAKE_BUILD_TYPE:STRING=Release" -D"CMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk" -D"CMAKE_OSX_DEPLOYMENT_TARGET=10.9"
37+
- cmake -B build -S . \
38+
-DCMAKE_EXE_LINKER_FLAGS="-stdlib=libc++" \
39+
-DCMAKE_SHARED_LINKER_FLAGS="-stdlib=libc++" \
40+
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
41+
-DCMAKE_INSTALL_PREFIX:PATH=build/install-x64 \
42+
-DCMAKE_CXX_COMPILER=clang++ \
43+
-DCMAKE_C_COMPILER=clang \
44+
-DCMAKE_BUILD_TYPE:STRING=Release \
45+
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk \
46+
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.9
3847
- cmake --build build -j 9
3948
- cmake --install build
4049
- PROJECT_VERSION=$(grep -E '^set\(PROJECT_VERSION_FULL "(.*)' CMakeLists.txt | awk '{print $2}' | tr -d '")')
@@ -43,7 +52,7 @@ mac-builder:
4352
- git log $(git describe --tags --abbrev=0 @^)..@ --oneline --pretty=format:"- %C(auto,yellow)%h%C(auto,magenta)% %C(auto,blue)%>(12,trunc)%ad %C(auto,green)%<(25,trunc)%aN%C(auto,reset)%s%C(auto,red)% gD% D" --date=short > "build/install-x64/share/$CI_PROJECT_NAME.log"
4453
when: always
4554
except:
46-
- tags
55+
- tags
4756
tags:
4857
- mac
4958

0 commit comments

Comments
 (0)