Fixed overflow policy bug #210
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: macOS | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ "master", "experimental" ] | |
| pull_request: | |
| branches: [ "master", "experimental" ] | |
| env: | |
| BUILD_TYPE: Release | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| name: Apple Clang Build | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Xcode (optional) | |
| run: sudo xcode-select -s /Applications/Xcode.app | |
| - name: Install Ninja | |
| run: brew install ninja | |
| - name: Create Build Environment | |
| run: cmake -E make_directory "${{ runner.workspace }}/build" | |
| - name: Configure CMake | |
| working-directory: "${{ runner.workspace }}/build" | |
| run: | | |
| cmake -G Ninja -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \ | |
| -DCMAKE_C_FLAGS="-Wall -Wextra -Wpedantic" \ | |
| -DCMAKE_CXX_FLAGS="-Wall -Wextra -Wpedantic" \ | |
| "${{ github.workspace }}" | |
| - name: Build | |
| working-directory: "${{ runner.workspace }}/build" | |
| run: cmake --build . --parallel $(sysctl -n hw.logicalcpu) |