Skip to content

Cleaned up the build system and code #1

Cleaned up the build system and code

Cleaned up the build system and code #1

Workflow file for this run

---
name: Build for macOS-13
on:
push:
branches: [main]
paths:
- src/**
- test/**
- benchmark/**
- cmake/**
- CMakeLists.txt
- CMakePresets.json
- .github/workflows/build-macos-13.yml
pull_request:
branches: [main]
types: [synchronize, opened, reopened, ready_for_review]
paths:
- src/**
- test/**
- benchmark/**
- cmake/**
- CMakeLists.txt
- CMakePresets.json
- .github/workflows/build-macos-13.yml
workflow_dispatch:
jobs:
macOS-13:
runs-on: macos-13
env:
CMAKE_GENERATOR: Ninja
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.3.1'
- 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 google-sparsehash
- uses: actions/checkout@v4
- name: Configure Multi-Config
run: cmake --preset multi-san
- name: Build Debug
run: cmake --build --preset debug
- name: Test Debug
run: ctest --preset debug
- name: Build Release
run: cmake --build --preset release
- name: Test Release
run: ctest --preset release