aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/macos-arm-build.yml60
-rw-r--r--README.md1
2 files changed, 61 insertions, 0 deletions
diff --git a/.github/workflows/macos-arm-build.yml b/.github/workflows/macos-arm-build.yml
new file mode 100644
index 00000000000..3c890bd4dfb
--- /dev/null
+++ b/.github/workflows/macos-arm-build.yml
@@ -0,0 +1,60 @@
+name: macOS arm64
+
+on:
+ push:
+ pull_request:
+
+jobs:
+ build:
+ runs-on: macos-14
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Set reusable strings
+ id: strings
+ shell: bash
+ run: |
+ echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
+
+ - name: Install/Update requirements
+ env:
+ HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
+ run: |
+ brew update
+ brew uninstall openssl@1.1
+ brew install mysql openssl readline cmake boost coreutils ninja
+ brew config
+
+ - name: Check some deps
+ run: |
+ mysql --version
+ openssl version
+
+ - name: Print CPU info
+ run: |
+ echo "Cores: $(nproc), Arch: $(uname -p)"
+
+ - name: Configure CMake
+ run: >
+ cmake -GNinja -B ${{ steps.strings.outputs.build-output-dir }}
+ -DWITH_WARNINGS=1 -DWITH_COREDEBUG=0 -DUSE_COREPCH=1 -DUSE_SCRIPTPCH=1 -DTOOLS=1 -DSCRIPTS=static -DSERVERS=1 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror" -DCMAKE_C_FLAGS_DEBUG="-DNDEBUG" -DCMAKE_CXX_FLAGS_DEBUG="-DNDEBUG" -DBUILD_TESTING=1
+ -DCMAKE_INSTALL_PREFIX=check_install
+ -S ${{ github.workspace }}
+
+ - name: Build
+ run: |
+ cd ${{ steps.strings.outputs.build-output-dir }}
+ ninja
+ ninja install
+
+ - name: Unit tests
+ run: |
+ cd ${{ steps.strings.outputs.build-output-dir }}
+ ninja test
+
+ - name: Check binaries
+ run: |
+ cd ${{ github.workspace }}/check_install/bin
+ ./bnetserver --version
+ ./worldserver --version
diff --git a/README.md b/README.md
index 166d9973eae..4338ed74910 100644
--- a/README.md
+++ b/README.md
@@ -24,6 +24,7 @@ master | 3.3.5 | wotlk_classic
[![master Build Status](https://circleci.com/gh/TrinityCore/TrinityCore/tree/master.svg?style=shield)](https://circleci.com/gh/TrinityCore/TrinityCore/tree/master) | [![3.3.5 Build Status](https://circleci.com/gh/TrinityCore/TrinityCore/tree/3.3.5.svg?style=shield)](https://circleci.com/gh/TrinityCore/TrinityCore/tree/3.3.5) | [![wotlk_classic Build Status](https://circleci.com/gh/TrinityCore/TrinityCore/tree/wotlk_classic.svg?style=shield)](https://circleci.com/gh/TrinityCore/TrinityCore/tree/wotlk_classic)
[![master Build status](https://ci.appveyor.com/api/projects/status/54d0u1fxe50ad80o/branch/master?svg=true)](https://ci.appveyor.com/project/DDuarte/trinitycore/branch/master) | [![Build status](https://ci.appveyor.com/api/projects/status/54d0u1fxe50ad80o/branch/3.3.5?svg=true)](https://ci.appveyor.com/project/DDuarte/trinitycore/branch/3.3.5) | [![Build status](https://ci.appveyor.com/api/projects/status/54d0u1fxe50ad80o/branch/wotlk_classic?svg=true)](https://ci.appveyor.com/project/DDuarte/trinitycore/branch/wotlk_classic)
[![master GCC Build status](https://github.com/TrinityCore/TrinityCore/actions/workflows/gcc-build.yml/badge.svg?branch=master&event=push)](https://github.com/TrinityCore/TrinityCore/actions?query=workflow%3AGCC+branch%3Amaster+event%3Apush) | [![3.3.5 GCC Build status](https://github.com/TrinityCore/TrinityCore/actions/workflows/gcc-build.yml/badge.svg?branch=3.3.5&event=push)](https://github.com/TrinityCore/TrinityCore/actions?query=workflow%3AGCC+branch%3A3.3.5+event%3Apush) | [![wotlk_classic GCC Build status](https://github.com/TrinityCore/TrinityCore/actions/workflows/gcc-build.yml/badge.svg?branch=wotlk_classic&event=push)](https://github.com/TrinityCore/TrinityCore/actions?query=workflow%3AGCC+branch%3Awotlk_classic+event%3Apush)
+[![master macOS arm64 Build status](https://github.com/TrinityCore/TrinityCore/actions/workflows/macos-arm-build.yml/badge.svg?branch=master&event=push)](https://github.com/TrinityCore/TrinityCore/actions?query=workflow%3AGCC+branch%3Amaster+event%3Apush) | |
[![Coverity Scan Build Status](https://scan.coverity.com/projects/435/badge.svg)](https://scan.coverity.com/projects/435) | [![Coverity Scan Build Status](https://scan.coverity.com/projects/4656/badge.svg)](https://scan.coverity.com/projects/4656) |
## Introduction