Clamp probabilities passed to binomial distribution to $[0.0, 1.0]$. … #587
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: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| strategy: | |
| matrix: | |
| compiler: | |
| - { name: Clang, cc: clang, cxx: clang++ } | |
| - { name: GNU, cc: gcc, cxx: g++ } | |
| build-mode: [Debug, Release] | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Install dependencies | |
| run: sudo apt-get install -y libopenmpi3 libopenmpi-dev libsparsehash-dev | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| - name: export-compiler | |
| run: | | |
| echo CXX=${{ matrix.compiler.cxx }} >> $GITHUB_ENV | |
| echo CC=${{ matrix.compiler.cc }} >> $GITHUB_ENV | |
| - name: cpu-cores | |
| uses: SimenB/github-actions-cpu-cores@v2 | |
| id: cpu-cores | |
| - name: print-cpu-cores | |
| run: echo ${{ steps.cpu-cores.outputs.count }} | |
| - name: cmake | |
| run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build-mode }} -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }} -DCMAKE_C_COMPILER=${{ matrix.compiler.cc }} -DKAGEN_WARNINGS_ARE_ERRORS=ON -DKAGEN_BUILD_TESTS=ON | |
| - name: build | |
| run: cmake --build build/ --parallel ${{ steps.cpu-cores.outputs.count }} | |
| - name: test | |
| run: | | |
| cd ./build | |
| ctest --output-on-failure |