@@ -130,11 +130,14 @@ jobs:
130
130
- name : Checkout LAPACK
131
131
uses : actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
132
132
133
+ - name : Install ninja-build tool
134
+ uses : seanmiddleditch/gha-setup-ninja@16b940825621068d98711680b6c3ff92201f8fc0 # v3
135
+
133
136
- name : Configure CMake
134
137
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
135
138
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
136
139
run : >
137
- cmake -B build
140
+ cmake -B build -G Ninja
138
141
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
139
142
-D CMAKE_INSTALL_PREFIX=${{github.workspace}}/lapack_install
140
143
-D CBLAS:BOOL=ON
@@ -181,4 +184,40 @@ jobs:
181
184
-D BUILD_SHARED_LIBS:BOOL=ON
182
185
183
186
- name : Install
184
- run : cmake --build build --target install -j2
187
+ run : cmake --build build --target install -j2
188
+
189
+ memory-check :
190
+ runs-on : ubuntu-latest
191
+ env :
192
+ BUILD_TYPE : Debug
193
+ FFLAGS : " -fopenmp"
194
+
195
+ steps :
196
+
197
+ - name : Checkout LAPACK
198
+ uses : actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
199
+
200
+ - name : Install ninja-build tool
201
+ uses : seanmiddleditch/gha-setup-ninja@16b940825621068d98711680b6c3ff92201f8fc0 # v3
202
+
203
+ - name : Install Valgrind
204
+ run : |
205
+ sudo apt update
206
+ sudo apt install -y valgrind
207
+
208
+ - name : Configure CMake
209
+ run : >
210
+ cmake -B build -G Ninja
211
+ -D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
212
+ -D CBLAS:BOOL=ON
213
+ -D LAPACKE:BOOL=ON
214
+ -D BUILD_TESTING:BOOL=ON
215
+ -D LAPACKE_WITH_TMG:BOOL=ON
216
+ -D BUILD_SHARED_LIBS:BOOL=ON
217
+
218
+ - name : Build
219
+ run : cmake --build build --config ${{env.BUILD_TYPE}}
220
+
221
+ - name : Test
222
+ working-directory : ${{github.workspace}}/build
223
+ run : ctest -C ${{env.BUILD_TYPE}} --schedule-random -j2 --output-on-failure
0 commit comments