Build on Mac (#93)

This commit is contained in:
Anders Jenbo 2025-05-16 05:58:59 +02:00 committed by GitHub
parent 9ae96cbff6
commit 4ccd2501d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 51 additions and 2 deletions

View File

@ -25,7 +25,6 @@ jobs:
cmake -S . -B build -GNinja \
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
-DISLE_USE_DX5=OFF \
-DISLE_D3DRM_FROM_WINE=OFF \
-DENABLE_CLANG_TIDY=ON \
-DISLE_WERROR=ON \
-Werror=dev

46
.github/workflows/mac.yml vendored Normal file
View File

@ -0,0 +1,46 @@
name: macOS
on: [push, pull_request]
jobs:
build-macos:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
build-type: [Release, Debug]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
brew update
brew install cmake ninja llvm
echo "CLANG_TIDY=$(brew --prefix llvm)/bin/clang-tidy" >> $GITHUB_ENV
- name: Configure
run: |
cmake -S . -B build -GNinja \
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
-DISLE_USE_DX5=OFF \
-DENABLE_CLANG_TIDY=ON \
-DCLANG_TIDY_BIN=$CLANG_TIDY \
-DISLE_WERROR=ON \
-Werror=dev
- name: Build
run: cmake --build build -- -k0
- name: Make Artifact Archive
run: |
cd build
zip "isle-portable-macos-${{ matrix.build-type }}.zip" \
config isle liblego1.dylib
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: macos-artifacts-${{ matrix.build-type }}
path: build/isle-portable-macos-${{ matrix.build-type }}.zip

View File

@ -8,6 +8,10 @@ include(CheckCXXSourceCompiles)
include(CMakeDependentOption)
include(CMakePushCheckState)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
if (NOT MINGW)
set(NOT_MINGW ON)
else()

View File

@ -14,7 +14,7 @@ Please note: this project is dedicated to achieving platform independence withou
| - | - |
| Windows | ✅ |
| Linux | 🚧 |
| macOS | |
| macOS | 🚧 |
### Library substitutions