Skip to content

Commit

Permalink
Generalized build matrix in Mac CIS script.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBanana committed Aug 4, 2023
1 parent 55d2b7b commit d6d0021
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
BUILD_TYPE: Debug

jobs:
build:
build_ios:
runs-on: macos-latest

steps:
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ on:
pull_request:
branches: [ "master" ]

env:
BUILD_TYPE: Debug

jobs:
build_macos:
strategy:
matrix:
config: [Debug, Release]
lib: [Shared, Static]
fail-fast: false

runs-on: macos-latest

steps:
Expand All @@ -20,8 +23,8 @@ jobs:
run: git clone https://github.com/LukasBanana/GaussianLib.git

- name: Configure CMake
run: cmake -S . -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DLLGL_BUILD_RENDERER_OPENGL=ON -DLLGL_BUILD_RENDERER_METAL=ON -DLLGL_BUILD_EXAMPLES=ON -DLLGL_BUILD_TESTS=ON -DLLGL_BUILD_WRAPPER_C99=ON -DGaussLib_INCLUDE_DIR:STRING="GaussianLib/include"
run: cmake -S . -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DLLGL_BUILD_STATIC_LIB=${{ matrix.lib == 'Static' && 'ON' || 'OFF' }} -DLLGL_BUILD_RENDERER_OPENGL=ON -DLLGL_BUILD_RENDERER_METAL=ON -DLLGL_BUILD_EXAMPLES=ON -DLLGL_BUILD_TESTS=ON -DLLGL_BUILD_WRAPPER_C99=ON -DGaussLib_INCLUDE_DIR:STRING="GaussianLib/include"

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.config }}

0 comments on commit d6d0021

Please sign in to comment.