Skip to content

Build project modules on macOS with CMake and Apple Clang #25

Build project modules on macOS with CMake and Apple Clang

Build project modules on macOS with CMake and Apple Clang #25

Workflow file for this run

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 }}