Skip to content

Commit d0c09ff

Browse files
insunaakillerwife
authored andcommitted
CI/CD: Fix MacOS Build
1 parent 618f379 commit d0c09ff

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/macos.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,15 @@ jobs:
2727
run: |
2828
brew install mysql-client@8.4
2929
brew install openssl
30-
brew install boost
30+
brew install boost@1.85
31+
brew link boost@1.85
3132
echo "OPENSSL_ROOT_DIR=$(brew --prefix --installed openssl)" >> $GITHUB_ENV
3233
3334
- name: Configure
3435
env:
3536
BOOST_ROOT: /opt/homebrew/opt/boost
36-
run: cmake -B ${{env.BUILD_DIR}} -S ${{env.REPO_DIR}} -DBoost_ARCHITECTURE=-arm64
37+
CMAKE_PREFIX_PATH: /opt/homebrew
38+
run: cmake -B ${{env.BUILD_DIR}} -S ${{env.REPO_DIR}} -DBoost_ARCHITECTURE=-arm64 -DCMAKE_POLICY_VERSION_MINIMUM=3.5
3739

3840
- name: Build
3941
env:

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ if (POLICY CMP0074)
211211
endif()
212212

213213
# Find needed packages and if necessery abort if something important is missing
214-
find_package(Boost REQUIRED COMPONENTS system program_options thread regex serialization filesystem)
214+
find_package(Boost REQUIRED COMPONENTS program_options thread regex serialization filesystem)
215215

216216
if(NOT Boost_FOUND AND (BUILD_GAME_SERVER OR BUILD_LOGIN_SERVER))
217217
message(STATUS "BOOST_ROOT = $ENV{BOOST_ROOT}")

0 commit comments

Comments
 (0)