CMake: added header-only target PoissonGenerator
#7
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: C/C++ CI | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| cmake-build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| generator: ["Default Generator", "Unix Makefiles"] | |
| env: | |
| CMAKE_GENERATOR: >- | |
| ${{format(matrix.generator != 'Default Generator' && '-G "{0}"' || '', matrix.generator)}} | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Get number of CPU cores | |
| uses: SimenB/github-actions-cpu-cores@v2 | |
| - name: Build | |
| shell: bash | |
| run: | | |
| cmake ${{ env.CMAKE_GENERATOR }} -S "${{ github.workspace }}" -B build | |
| cd build | |
| cmake --build . --parallel ${{ steps.cpu-cores.outputs.count }} |