@@ -116,45 +116,49 @@ jobs:
116116 - name : Install
117117 run : cmake --build build --target install -j2
118118
119- # coverage:
120- # runs-on: ubuntu-latest
121- # env:
122- # BUILD_TYPE: Coverage
123- # FFLAGS: "-fopenmp"
124- # steps:
125- #
126- # - name: Checkout SLICOT
127- # uses: actions/checkout@v4.2.2
128- #
129- # - name: Install ninja-build tool
130- # uses: seanmiddleditch/gha-setup-ninja@v6
131- #
132- # - name: Install basics
133- # run: |
134- # sudo apt update
135- # sudo apt install -y cmake liblapack-dev libblas-dev
136- #
137- #
138- # - name: Configure CMake
139- # # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
140- # # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
141- # run: >
142- # cmake -B build -G Ninja
143- # -D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
144- # -D CMAKE_INSTALL_PREFIX=${{github.workspace}}/lapack_install
145- # -D SLICOT_BUILD_TESTING:BOOL=ON
146- # -D SLICOT_BUILD_SHARED_LIBS:BOOL=ON
147- #
148- # - name: Install
149- # run: cmake --build build --target install -j2
150- #
151- # - name: Coverage
152- # run: |
153- # echo "Coverage"
154- # cmake --build build --target coverage
155- # ctest -C ${{env.BUILD_TYPE}} --schedule-random -j1 --output-on-failure --timeout 100
156- # bash <(curl -s https://codecov.io/bash) -X gcov
157- #
119+ coverage :
120+ runs-on : ubuntu-latest
121+ env :
122+ BUILD_TYPE : Coverage
123+ FFLAGS : " -fopenmp"
124+ steps :
125+
126+ - name : Checkout SLICOT
127+ uses : actions/checkout@v4.2.2
128+
129+ - name : Install ninja-build tool
130+ uses : seanmiddleditch/gha-setup-ninja@v6
131+
132+ - name : Install basics
133+ run : |
134+ sudo apt update
135+ sudo apt install -y cmake liblapack-dev libblas-dev
136+
137+
138+ - name : Configure CMake
139+ # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
140+ # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
141+ run : >
142+ cmake -B build -G Ninja
143+ -D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
144+ -D CMAKE_INSTALL_PREFIX=${{github.workspace}}/lapack_install
145+ -D SLICOT_BUILD_TESTING:BOOL=ON
146+ -D SLICOT_BUILD_SHARED_LIBS:BOOL=ON
147+
148+ - name : Build
149+ # Execute tests defined by the CMake configuration.
150+ # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
151+ run : cmake --build build --config ${{env.BUILD_TYPE}}
152+
153+ - name : Test with OpenMP
154+ working-directory : ${{github.workspace}}/build
155+ run : ctest -C ${{env.BUILD_TYPE}} --schedule-random -j1 --output-on-failure --timeout 100
156+
157+ - name : Generate HTML Report
158+ uses : threeal/gcovr-action@v1.1.0
159+ with :
160+ html-out : coverage.html
161+
158162# memory-check:
159163# runs-on: ubuntu-latest
160164# env:
0 commit comments