mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-19 05:41:17 +00:00
Build on Mac (#93)
This commit is contained in:
parent
9ae96cbff6
commit
4ccd2501d0
1
.github/workflows/linux.yml
vendored
1
.github/workflows/linux.yml
vendored
@ -25,7 +25,6 @@ jobs:
|
|||||||
cmake -S . -B build -GNinja \
|
cmake -S . -B build -GNinja \
|
||||||
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
|
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
|
||||||
-DISLE_USE_DX5=OFF \
|
-DISLE_USE_DX5=OFF \
|
||||||
-DISLE_D3DRM_FROM_WINE=OFF \
|
|
||||||
-DENABLE_CLANG_TIDY=ON \
|
-DENABLE_CLANG_TIDY=ON \
|
||||||
-DISLE_WERROR=ON \
|
-DISLE_WERROR=ON \
|
||||||
-Werror=dev
|
-Werror=dev
|
||||||
|
|||||||
46
.github/workflows/mac.yml
vendored
Normal file
46
.github/workflows/mac.yml
vendored
Normal 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
|
||||||
@ -8,6 +8,10 @@ include(CheckCXXSourceCompiles)
|
|||||||
include(CMakeDependentOption)
|
include(CMakeDependentOption)
|
||||||
include(CMakePushCheckState)
|
include(CMakePushCheckState)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
|
||||||
if (NOT MINGW)
|
if (NOT MINGW)
|
||||||
set(NOT_MINGW ON)
|
set(NOT_MINGW ON)
|
||||||
else()
|
else()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user