Skip to content

Fixes for clang-tidy warnings and memory issues reported by sanitizers #17

Fixes for clang-tidy warnings and memory issues reported by sanitizers

Fixes for clang-tidy warnings and memory issues reported by sanitizers #17

---
name: Build for macOS-15
on:
push:
branches: [main]
paths:
- src/**
- test/**
- benchmark/**
- cmake/**
- CMakeLists.txt
- CMakePresets.json
- .github/workflows/build-macos-15.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-15.yml
workflow_dispatch:
jobs:
macOS-15:
runs-on: macos-15
env:
CMAKE_GENERATOR: "Ninja Multi-Config"
CTEST_OUTPUT_ON_FAILURE: 1
BUILD_DIR: build
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.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 google-sparsehash
- uses: actions/checkout@v4
- name: Configure Multi-Config
run: cmake -B "$BUILD_DIR" -DPTRIE_BuildTests=ON -DPTRIE_BuildBenchmark=OFF -DUBSAN=ON -DASAN=ON -DSSP=ON
- name: Build Debug
run: cmake --build "$BUILD_DIR" --config Debug
- name: Test Debug
run: ctest --test-dir "$BUILD_DIR" -C Debug
- name: Build Release
run: cmake --build "$BUILD_DIR" --config Release
- name: Test Release
run: ctest --test-dir "$BUILD_DIR" -C Release