23
23
env :
24
24
CFLAGS : " -Wall -pedantic"
25
25
FFLAGS : " -fcheck=all,no-bounds"
26
- BUILD_TYPE : Release
26
+ CMAKE_BUILD_TYPE : Release
27
27
MPIEXEC_PREFLAGS : " --oversubscribe"
28
28
29
29
defaults :
48
48
steps :
49
49
50
50
- name : Checkout ScaLAPACK
51
- uses : actions/checkout@v2
52
-
53
- - name : Install ninja-build tool
54
- uses : seanmiddleditch/gha-setup-ninja@v3
51
+ uses : actions/checkout@v4
55
52
56
53
- name : Setup MPI
57
54
# uses: mpi4py/setup-mpi@v1
@@ -68,14 +65,18 @@ jobs:
68
65
cmake-version : ${{ matrix.cmake }}
69
66
70
67
- name : CMake configuration
71
- run : >
72
- cmake -B build
73
- -G Ninja
74
- -D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
75
- -D CMAKE_INSTALL_PREFIX=${{github.workspace}}/scalapack_install
76
- -D BUILD_SHARED_LIBS=ON
77
- -D SCALAPACK_BUILD_TESTS=ON
78
- -D MPIEXEC_PREFLAGS=${{env.MPIEXEC_PREFLAGS}}
68
+ # TODO: Use cmake presets for newer versions
69
+ # TODO: Simplify the defaults to not require configuration
70
+ run : |
71
+ # CMake<3.13 does not have -B option
72
+ mkdir build
73
+ cd build
74
+ cmake .. \
75
+ -G Ninja \
76
+ -DCMAKE_BUILD_TYPE=${{env.CMAKE_BUILD_TYPE}} \
77
+ -DBUILD_SHARED_LIBS=ON \
78
+ -DSCALAPACK_BUILD_TESTS=ON \
79
+ -DMPIEXEC_PREFLAGS=${{env.MPIEXEC_PREFLAGS}}
79
80
80
81
- name : Build
81
82
working-directory : ${{github.workspace}}/build
90
91
ctest -D ExperimentalTest --schedule-random --output-on-failure --timeout 180
91
92
ctest -D ExperimentalSubmit
92
93
93
- - name : Install
94
- run : cmake --build build --target install
94
+ - name : Install (CMake < 3.15)
95
+ run : DESTDIR=scalapack_install cmake --build build --target install
96
+ if : ${{ matrix.cmake == '3.9' }}
97
+ - name : Install (CMake >= 3.15)
98
+ run : cmake --install build --prefix scalapack_install
99
+ if : ${{ matrix.cmake != '3.9' }}
100
+ # TODO: Separate the test suite to be able to test the actual install package
0 commit comments