Another fix for CI #40
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: Build and Test on Linux Mac and Windows | |
| on: | |
| push: | |
| branches: [ master ] | |
| tags: "v*" | |
| env: | |
| BUILD_TYPE: Debug | |
| jobs: | |
| build: | |
| name: Test on ${{ matrix.config.os }} with ${{ matrix.config.cc }} | |
| runs-on: ${{ matrix.config.os }} | |
| env: | |
| CC: ${{ matrix.config.cc }} | |
| timeout-minutes: 5 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - {os: ubuntu-24.04, cc: "gcc", cxx: "g++"} | |
| - {os: ubuntu-24.04, cc: "clang", cxx: "clang++"} | |
| - {os: windows-latest, cc: "cl", cxx: "cl"} | |
| #- {os: macos-latest, cc: "clang", cxx: "clang++"} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Prints | |
| run: | | |
| echo ${{ matrix.config.cc }} | |
| echo ${{ matrix.config.os }} | |
| gcc -v | |
| - name: Install TBB Linux | |
| if: matrix.config.os == 'ubuntu-24.04' | |
| run: sudo apt install libtbb-dev | |
| # - name: Install TBB MacOS | |
| # if: matrix.config.os == 'macos-latest' | |
| # run: brew install tbb | |
| - name: Info | |
| run: echo ${{ github.ref }} | |
| - name: Configure CMake | |
| run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
| - name: Test | |
| working-directory: ${{github.workspace}}/build | |
| run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure |