Skip to content

Commit ebc0862

Browse files
committed
ci:cmake: test each precision builds by itself
1 parent 649fc20 commit ebc0862

File tree

1 file changed

+120
-0
lines changed

1 file changed

+120
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,123 @@ jobs:
7373
7474
- name: Install
7575
run: cmake --install build
76+
77+
78+
real32:
79+
runs-on: ubuntu-latest
80+
81+
steps:
82+
83+
- name: Checkout ScaLAPACK
84+
uses: actions/checkout@v3
85+
86+
- name: Setup MPI
87+
run: |
88+
sudo apt update
89+
sudo apt install --no-install-recommends openmpi-bin libopenmpi-dev
90+
91+
- name: CMake configuration
92+
run: >
93+
cmake -B build
94+
--install-prefix ${{ runner.temp }}
95+
-DBUILD_SINGLE=on -DBUILD_DOUBLE=off -DBUILD_COMPLEX=off -DBUILD_COMPLEX16=off
96+
-DMPIEXEC_PREFLAGS=${{ env.MPIEXEC_PREFLAGS }}
97+
98+
- name: Build
99+
run: cmake --build build --parallel
100+
101+
- name: Test
102+
run: ctest --test-dir build --schedule-random --output-on-failure --timeout 180
103+
104+
- name: Install
105+
run: cmake --install build
106+
107+
108+
real64:
109+
runs-on: ubuntu-latest
110+
111+
steps:
112+
113+
- name: Checkout ScaLAPACK
114+
uses: actions/checkout@v3
115+
116+
- name: Setup MPI
117+
run: |
118+
sudo apt update
119+
sudo apt install --no-install-recommends openmpi-bin libopenmpi-dev
120+
121+
- name: CMake configuration
122+
run: >
123+
cmake -B build
124+
--install-prefix ${{ runner.temp }}
125+
-DBUILD_SINGLE=off -DBUILD_DOUBLE=on -DBUILD_COMPLEX=off -DBUILD_COMPLEX16=off
126+
-DMPIEXEC_PREFLAGS=${{ env.MPIEXEC_PREFLAGS }}
127+
128+
- name: Build
129+
run: cmake --build build --parallel
130+
131+
- name: Test
132+
run: ctest --test-dir build --schedule-random --output-on-failure --timeout 180
133+
134+
- name: Install
135+
run: cmake --install build
136+
137+
138+
complex32:
139+
runs-on: ubuntu-latest
140+
141+
steps:
142+
143+
- name: Checkout ScaLAPACK
144+
uses: actions/checkout@v3
145+
146+
- name: Setup MPI
147+
run: |
148+
sudo apt update
149+
sudo apt install --no-install-recommends openmpi-bin libopenmpi-dev
150+
151+
- name: CMake configuration
152+
run: >
153+
cmake -B build
154+
--install-prefix ${{ runner.temp }}
155+
-DBUILD_SINGLE=off -DBUILD_DOUBLE=off -DBUILD_COMPLEX=on -DBUILD_COMPLEX16=off
156+
-DMPIEXEC_PREFLAGS=${{ env.MPIEXEC_PREFLAGS }}
157+
158+
- name: Build
159+
run: cmake --build build --parallel
160+
161+
- name: Test
162+
run: ctest --test-dir build --schedule-random --output-on-failure --timeout 180
163+
164+
- name: Install
165+
run: cmake --install build
166+
167+
168+
complex64:
169+
runs-on: ubuntu-latest
170+
171+
steps:
172+
173+
- name: Checkout ScaLAPACK
174+
uses: actions/checkout@v3
175+
176+
- name: Setup MPI
177+
run: |
178+
sudo apt update
179+
sudo apt install --no-install-recommends openmpi-bin libopenmpi-dev
180+
181+
- name: CMake configuration
182+
run: >
183+
cmake -B build
184+
--install-prefix ${{ runner.temp }}
185+
-DBUILD_SINGLE=off -DBUILD_DOUBLE=off -DBUILD_COMPLEX=off -DBUILD_COMPLEX16=on
186+
-DMPIEXEC_PREFLAGS=${{ env.MPIEXEC_PREFLAGS }}
187+
188+
- name: Build
189+
run: cmake --build build --parallel
190+
191+
- name: Test
192+
run: ctest --test-dir build --schedule-random --output-on-failure --timeout 180
193+
194+
- name: Install
195+
run: cmake --install build

0 commit comments

Comments
 (0)