Skip to content

Commit 6412bff

Browse files
committed
Build projectM as both libs and framework on macOS
1 parent ceb86eb commit 6412bff

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/build_osx.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ on:
1313

1414
jobs:
1515
build-shared:
16-
name: "Libs: ${{ matrix.libs }}, FS Lib: ${{ matrix.fslib }}, Arch: ${{ matrix.arch }}, Build OS: ${{ matrix.runs-on }}"
16+
name: "Libs: ${{ matrix.libs }}, FS Lib: ${{ matrix.fslib }}, Type: ${{ matrix.framework }}, Arch: ${{ matrix.arch }}, Build OS: ${{ matrix.runs-on }}"
1717
runs-on: ${{ matrix.runs-on }}
1818
strategy:
1919
fail-fast: false
2020
matrix:
2121
libs: ['shared', 'static']
2222
fslib: ['stl', 'boost']
23+
framework: ['libs', 'framework']
2324
arch: ['arm64', 'x86_64']
2425
runs-on: ['macos-15', 'macos-15-intel']
2526
exclude:
@@ -48,14 +49,19 @@ jobs:
4849
- name: Configure Build
4950
run: |
5051
if [ "${{ matrix.libs }}" == "shared" ]; then
51-
shared_libs=ON
52+
shared_libs=ON
5253
else
53-
shared_libs=OFF
54+
shared_libs=OFF
5455
fi
5556
if [ "${{ matrix.fslib }}" == "boost" ]; then
56-
use_boost=ON
57+
use_boost=ON
5758
else
58-
use_boost=OFF
59+
use_boost=OFF
60+
fi
61+
if [ "${{ matrix.framework }}" == "framework" ]; then
62+
as_framework=ON
63+
else
64+
as_framework=OFF
5965
fi
6066
cmake -G "Ninja Multi-Config" \
6167
-S "${{ github.workspace }}" \
@@ -64,6 +70,7 @@ jobs:
6470
-DCMAKE_VERBOSE_MAKEFILE=YES \
6571
-DBUILD_SHARED_LIBS="${shared_libs}" \
6672
-DENABLE_BOOST_FILESYSTEM="${use_boost}" \
73+
-DENABLE_MACOS_FRAMEWORK="${as_framework}" \
6774
-DCMAKE_OSX_ARCHITECTURES="${{ matrix.arch }}" \
6875
-DENABLE_CXX_INTERFACE=YES \
6976
-DBUILD_TESTING=YES
@@ -96,5 +103,5 @@ jobs:
96103
- name: Upload Artifact
97104
uses: actions/upload-artifact@v4
98105
with:
99-
name: projectm-osx-${{ matrix.libs }}-${{ matrix.fslib }}-${{ matrix.arch }}-${{ matrix.runs-on }}
106+
name: projectm-osx-${{ matrix.libs }}-${{ matrix.fslib }}-${{ matrix.framework }}-${{ matrix.arch }}-${{ matrix.runs-on }}
100107
path: install/*

0 commit comments

Comments
 (0)