Build project modules on macOS with CMake and Apple Clang #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macOS Apple Clang Build | |
run-name: Build project modules on macOS with CMake and Apple Clang | |
on: | |
push | |
jobs: | |
Build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest] | |
build_type: [Release] | |
c_compiler: [clang] | |
include: | |
- os: macos-latest | |
c_compiler: clang | |
cpp_compiler: clang++ | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update Git Submodules | |
run: git submodule update --init --recursive | |
- name: Configure Editor Build Directory | |
id: editorStrings | |
shell: bash | |
run: echo "buildDirectory=${{ github.workspace }}/bin/SierraEngineEditor-macOS-Clang/" >> "$GITHUB_OUTPUT" | |
- name: Configure Editor CMake Project | |
run: > | |
cmake -B ${{ steps.editorStrings.outputs.buildDirectory }} | |
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} | |
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }} | |
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | |
-S ${{ github.workspace }}/SierraEngineEditor/ | |
- name: Build Editor CMake Project | |
run: cmake --build ${{ steps.editorStrings.outputs.buildDirectory }} --config ${{ matrix.build_type }} |