Skip to content

cmake.yml: Enable macos build #93

cmake.yml: Enable macos build

cmake.yml: Enable macos build #93

Workflow file for this run

name: CMake
on:
push:
pull_request:
env:
BUILD_TYPE: Release
jobs:
build:
strategy:
matrix:
include:
- name: ubuntu-latest-gcc-cmake
os: ubuntu-latest
cc: gcc
cxx: g++
build-system: cmake
cmake-opts: ''
- name: ubuntu-latest-clang-cmake
os: ubuntu-latest
cc: clang
cxx: clang++
build-system: cmake
cmake-opts: ''
- name: macos-latest-clang-cmake
os: macos-latest
cc: clang
cxx: clang++
build-system: cmake
cmake-opts: ''
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Configure CMake
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
run: cmake -B ${{github.workspace}}/out -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ${{ matrix.cmake-opts }}
- name: Build
run: cmake --build ${{github.workspace}}/out --config ${{env.BUILD_TYPE}}