Skip to content

Commit

Permalink
CI: Update CI runners and update CMake macros for Apple Silicon brew …
Browse files Browse the repository at this point in the history
…locations
  • Loading branch information
Niam5 committed Feb 25, 2025
1 parent 711813a commit f157f97
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 29 deletions.
28 changes: 6 additions & 22 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ env:
BUILD_TYPE: Release
REPO_DIR : ${{github.workspace}}
BUILD_DIR: ${{github.workspace}}/bin/builddir
BOOST_VERSION: "1.83.0"
BOOST_PLATFORM_VERSION: "13"

permissions:
contents: read

jobs:
build:
runs-on: macos-13
runs-on: macos-14
permissions:
contents: read

Expand All @@ -28,29 +26,15 @@ jobs:

- name: Install Dependencies
run: |
brew install mysql-client
brew install mysql-client@8.4
brew install openssl
brew install boost@1.85
echo "OPENSSL_ROOT_DIR=$(brew --prefix --installed openssl)" >> $GITHUB_ENV
- name: Install Boost
uses: MarkusJx/install-boost@v2.4.5
id: install-boost
with:
# REQUIRED: Specify the required boost version
# A list of supported versions can be found here:
# /~https://github.com/MarkusJx/prebuilt-boost/blob/main/versions-manifest.json
boost_version: ${{env.BOOST_VERSION}}
# OPTIONAL: Specify a platform version
platform_version: ${{env.BOOST_PLATFORM_VERSION}}
# OPTIONAL: Specify a toolset
toolset: clang
# NOTE: If a boost version matching all requirements cannot be found,
# this build step will fail

- name: Configure
env:
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
run: cmake -DBUILD_ELUNA=ON -B ${{env.BUILD_DIR}} -S ${{env.REPO_DIR}} -DBoost_ARCHITECTURE=-x64
BOOST_ROOT: /opt/homebrew/opt/boost@1.85
run: cmake -DBUILD_ELUNA=ON -B ${{env.BUILD_DIR}} -S ${{env.REPO_DIR}} -DBoost_ARCHITECTURE=-arm64

- name: Build
env:
Expand All @@ -61,7 +45,7 @@ jobs:
permissions:
contents: none
name: Send Notification to Discord on Failure
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: # make sure the notification is sent AFTER the jobs you want included have completed
- build
if: failure()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
notify:
name: Send Notification to Discord on Failure
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
permissions:
contents: none
needs: # make sure the notification is sent AFTER the jobs you want included have completed
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/windows-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Windows Release Build

#
on:
schedule:
# every day at 6am
Expand Down Expand Up @@ -137,7 +136,7 @@ jobs:

notify-success:
name: Send Notification to Discord on Success
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
permissions:
contents: none
needs:
Expand Down Expand Up @@ -180,7 +179,7 @@ jobs:

notify:
name: Send Notification to Discord on Failure
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
permissions:
contents: none
needs: # make sure the notification is sent AFTER the jobs you want included have completed
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Windows Build

on: [push]
Expand Down Expand Up @@ -70,7 +69,7 @@ jobs:

notify:
name: Send Notification to Discord on Failure
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
permissions:
contents: none
needs: # make sure the notification is sent AFTER the jobs you want included have completed
Expand Down
10 changes: 10 additions & 0 deletions cmake/macros/FindMySQL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ if( UNIX )
/usr/local/bin/
/usr/bin/
/usr/local/opt/mysql/bin/
/opt/homebrew/opt/mysql-client/bin
/opt/homebrew/opt/mysql-client@8.4/bin
/opt/mysql/mysql/bin/
)

Expand Down Expand Up @@ -77,6 +79,10 @@ find_path(MYSQL_INCLUDE_DIR
/usr/local/opt/mysql/include
/usr/local/opt/mysql-client/include
/usr/local/opt/mysql-client/include/mysql
/opt/homebrew/opt/mysql-client
/opt/homebrew/opt/mysql-client/include
/opt/homebrew/opt/mysql-client@8.4
/opt/homebrew/opt/mysql-client@8.4/include
/opt/mysql/mysql/include
/opt/mysql/mysql/include/mysql
"C:/Program Files/MySQL/include"
Expand Down Expand Up @@ -107,6 +113,10 @@ foreach(LIB ${MYSQL_ADD_LIBRARIES})
/usr/local/mysql/lib/mysql
/usr/local/opt/mysql/lib
/usr/local/opt/mysql-client/lib
/opt/homebrew/opt/mysql-client
/opt/homebrew/opt/mysql-client/lib
/opt/homebrew/opt/mysql-client@8.4
/opt/homebrew/opt/mysql-client@8.4/lib
/opt/mysql/mysql/lib
/opt/mysql/mysql/lib/mysql
DOC "Specify the location of the mysql library here."
Expand Down
2 changes: 1 addition & 1 deletion src/game/LuaEngine

0 comments on commit f157f97

Please sign in to comment.