Skip to content

Various build fixes

Various build fixes #4

---
name: Build for macOS-14
on:
push:
branches: [master]
paths:
- src/**
- test/**
- cmake/**
- CMakeLists.txt
- CMakePresets.json
- .github/workflows/build-macos-14.yml
pull_request:
branches: [master]
types: [synchronize, opened, reopened, ready_for_review]
paths:
- src/**
- test/**
- cmake/**
- CMakeLists.txt
- CMakePresets.json
- .github/workflows/build-macos-14.yml
workflow_dispatch:
jobs:
macOS-14:
runs-on: macos-14
env:
CMAKE_GENERATOR: Ninja
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.4.0'
- name: Setup Runner Environment
run: |
uname -a
xcrun --show-sdk-version
CORES=$(sysctl -n hw.ncpu)
echo "CMAKE_BUILD_PARALLEL_LEVEL=$CORES" >> $GITHUB_ENV
echo "CTEST_TEST_PARALLEL_LEVEL=$CORES" >> $GITHUB_ENV
echo "CTEST_TEST_LOAD=$CORES" >> $GITHUB_ENV
- name: Install Build Tools
run: |
brew update
brew install cmake ninja boost
- uses: actions/checkout@v4
- name: Configure Multi-Config
run: cmake --preset multi-san
- name: Build Debug
run: cmake --build --preset debug-san
- name: Test Debug
run: ctest --preset debug-san
- name: Build Release
run: cmake --build --preset release-san
- name: Test Release
run: ctest --preset release-san