Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade soon to be deprecated runners to newer versions #596

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the macOS runners a while ago after pushing changes and noticing the macOS builds were failing (see cmangos/mangos-tbc@9de293e and the merges this week to the other cores), so macOS builds should be fine again for now.

There's certainly something to say for going to macos-14 and arm64 builds, but also for using a somewhat older system (with typically older toolchain). The first tests that "newest" stuff can build the core, the second that it also still works with "older" stuff. I think we tend to go with older because newer is tested more by devs/users.

I'm going to guess the boost and MySQL changes are related to the move to arm64 macOS builds?

Copy link
Contributor

@killerwife killerwife Mar 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Answer to this would be preferable before merging. Otherwise no comments from me @Niam5

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I commented below but it seems GH didn't send it out. The reason I set it to 14 is 13 is the last Intel runner as detailed here https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources so the choice is to either change now and fixup the runner for the direction GH is headed or just kick the can down the road and when 13 goes away do it then. Figured it was easier to fix it now and follow the direction the runners are going then just postponing it

permissions:
contents: read

Expand All @@ -27,29 +25,15 @@ jobs:

- name: Install Dependencies
run: |
brew install mysql-client
brew install mysql-client@8.4
brew install openssl
brew install [email protected]
echo "OPENSSL_ROOT_DIR=$(brew --prefix --installed openssl)" >> $GITHUB_ENV

- name: Install Boost
uses: MarkusJx/[email protected]
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 -B ${{env.BUILD_DIR}} -S ${{env.REPO_DIR}} -DBoost_ARCHITECTURE=-x64
BOOST_ROOT: /opt/homebrew/opt/boost@1.85
run: cmake -B ${{env.BUILD_DIR}} -S ${{env.REPO_DIR}} -DBoost_ARCHITECTURE=-arm64

- name: Build
env:
Expand All @@ -60,7 +44,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 @@ -136,7 +135,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 @@ -179,7 +178,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
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,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/[email protected]/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/[email protected]
/opt/homebrew/opt/[email protected]/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/[email protected]
/opt/homebrew/opt/[email protected]/lib
/opt/mysql/mysql/lib
/opt/mysql/mysql/lib/mysql
DOC "Specify the location of the mysql library here."
Expand Down