Skip to content

Commit 016ebc7

Browse files
committed
ci: set macos deployment target in CI builds
1 parent c420394 commit 016ebc7

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ jobs:
7373
- name: Install dependencies (macOS)
7474
if: runner.os == 'macOS'
7575
run: command -v cmake >/dev/null 2>&1 || brew install cmake
76+
- name: Configure macOS deployment target
77+
if: runner.os == 'macOS'
78+
run: |
79+
echo "MACOSX_DEPLOYMENT_TARGET=11.0" >> "$GITHUB_ENV"
80+
echo "CMAKE_OSX_DEPLOYMENT_TARGET=11.0" >> "$GITHUB_ENV"
81+
echo "CFLAGS=-mmacosx-version-min=11.0" >> "$GITHUB_ENV"
82+
echo "CXXFLAGS=-mmacosx-version-min=11.0" >> "$GITHUB_ENV"
7683
- name: Install dependencies (Linux)
7784
if: runner.os == 'Linux'
7885
run: |
@@ -138,6 +145,13 @@ jobs:
138145
- name: Install dependencies (macOS)
139146
if: runner.os == 'macOS'
140147
run: command -v cmake >/dev/null 2>&1 || brew install cmake
148+
- name: Configure macOS deployment target
149+
if: runner.os == 'macOS'
150+
run: |
151+
echo "MACOSX_DEPLOYMENT_TARGET=11.0" >> "$GITHUB_ENV"
152+
echo "CMAKE_OSX_DEPLOYMENT_TARGET=11.0" >> "$GITHUB_ENV"
153+
echo "CFLAGS=-mmacosx-version-min=11.0" >> "$GITHUB_ENV"
154+
echo "CXXFLAGS=-mmacosx-version-min=11.0" >> "$GITHUB_ENV"
141155
- name: Install dependencies (Linux)
142156
if: runner.os == 'Linux'
143157
run: |

0 commit comments

Comments
 (0)