Skip to content

Commit 649fc20

Browse files
committed
ci: faster install of prereqs
1 parent a85c67b commit 649fc20

File tree

1 file changed

+18
-22
lines changed

1 file changed

+18
-22
lines changed

.github/workflows/cmake.yml

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,9 @@ on:
2323
env:
2424
CFLAGS: "-Wall -pedantic"
2525
FFLAGS: "-fcheck=all,no-bounds"
26-
BUILD_TYPE: Release
26+
CMAKE_BUILD_TYPE: Release
2727
MPIEXEC_PREFLAGS: "--oversubscribe"
2828

29-
defaults:
30-
run:
31-
shell: bash
3229

3330
jobs:
3431

@@ -38,42 +35,41 @@ jobs:
3835
steps:
3936

4037
- name: Checkout ScaLAPACK
41-
uses: actions/checkout@v2
42-
43-
- name: Install ninja-build tool
44-
uses: seanmiddleditch/gha-setup-ninja@v3
38+
uses: actions/checkout@v3
4539

4640
- name: Setup MPI
4741
# uses: mpi4py/setup-mpi@v1
4842
run: |
49-
sudo apt -y update
50-
sudo apt -y install openmpi-bin libopenmpi-dev
43+
sudo apt update
44+
sudo apt install --no-install-recommends openmpi-bin libopenmpi-dev
45+
46+
- name: Setup Ninja
47+
run: sudo apt install --no-install-recommends ninja-build
5148

5249
- name: Install BLAS and LAPACK
53-
run: sudo apt -y install libblas-dev liblapack-dev
54-
50+
run: sudo apt install --no-install-recommends libblas-dev liblapack-dev
51+
5552
- name: CMake configuration
5653
run: >
5754
cmake -B build
5855
-G Ninja
59-
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
60-
-D CMAKE_INSTALL_PREFIX=${{github.workspace}}/scalapack_install
61-
-D BUILD_SHARED_LIBS=ON
62-
-D SCALAPACK_BUILD_TESTS=ON
63-
-D MPIEXEC_PREFLAGS=${{env.MPIEXEC_PREFLAGS}}
64-
56+
--install-prefix ${{ github.workspace }}/scalapack_install
57+
-DBUILD_SHARED_LIBS=ON
58+
-DSCALAPACK_BUILD_TESTS=ON
59+
-DMPIEXEC_PREFLAGS=${{ env.MPIEXEC_PREFLAGS }}
60+
6561
- name: Build
66-
working-directory: ${{github.workspace}}/build
62+
working-directory: ${{ github.workspace }}/build
6763
run: |
6864
ctest -D ExperimentalStart
6965
ctest -D ExperimentalConfigure
7066
ctest -D ExperimentalBuild
7167
7268
- name: Test
73-
working-directory: ${{github.workspace}}/build
69+
working-directory: ${{ github.workspace }}/build
7470
run: |
7571
ctest -D ExperimentalTest --schedule-random --output-on-failure --timeout 180
7672
ctest -D ExperimentalSubmit
77-
73+
7874
- name: Install
79-
run: cmake --build build --target install
75+
run: cmake --install build

0 commit comments

Comments
 (0)