Skip to content

Commit 64ca24a

Browse files
Enable coverage again
1 parent 24e525c commit 64ca24a

File tree

2 files changed

+56
-43
lines changed

2 files changed

+56
-43
lines changed

.github/workflows/build-unix.yml

Lines changed: 43 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -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:

KNOWN_ISSUES.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,26 @@ The tests for the routines
1212
* `UD01ND`
1313

1414
fail if SLICOT is compiled using SHARED libraries. In general
15-
these two routines will not work with SLICOT as shared library
16-
under Windows if it is compiled with FLang.
15+
these two routines will not work with SLICOT as shared library
16+
under Windows if it is compiled with FLang.
1717

18-
The behavior was observed using
19-
```shell
18+
The behavior was observed using
19+
```shell
2020
$ flang --version
2121
flang version 19.1.7
2222
Target: x86_64-w64-windows-gnu
2323
Thread model: posix
2424
InstalledDir: C:/msys64/clang64/bin
2525
```
26+
and
27+
```shell
28+
$ flang --version
29+
flang version 20.1.3
30+
Target: x86_64-w64-windows-gnu
31+
Thread model: posix
32+
InstalledDir: C:/msys64/clang64/bin
33+
```
34+
2635

2736
The bug is known to LLVM community: https://github.com/llvm/llvm-project/issues/69952
2837

0 commit comments

Comments
 (0)