Skip to content

Commit 93dd51c

Browse files
Use Ninja to reduce compilation time
1 parent 69a8639 commit 93dd51c

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/cmake.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ on:
1212
- 'SLmake.inc.example'
1313
pull_request:
1414
paths-exclude:
15-
- '.github/**'
15+
- '.github/make.yml'
1616
- '.gitignore'
1717
- 'README'
1818
- '**README'
1919
- 'LICENSE'
20-
- 'CMAKE**'
21-
- '**CMakeLists.txt'
20+
- '**Makefile'
21+
- 'SLmake.inc.example'
2222

2323
env:
2424
CFLAGS: "-Wall -pedantic"
25-
FFLAGS: "-fcheck=all"
25+
FFLAGS: "-fcheck=all,no-bounds"
2626
BUILD_TYPE: Release
2727

2828
defaults:
@@ -39,12 +39,16 @@ jobs:
3939
- name: Checkout ScaLAPACK
4040
uses: actions/checkout@v2
4141

42+
- name: Install ninja-build tool
43+
uses: seanmiddleditch/gha-setup-ninja@v3
44+
4245
- name: Install MPI
4346
run: sudo apt install mpich
4447

4548
- name: CMake configuration
4649
run: >
4750
cmake -B build
51+
-G Ninja
4852
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
4953
-D CMAKE_INSTALL_PREFIX=${{github.workspace}}/scalapack_install
5054
-D BUILD_SHARED_LIBS=ON
@@ -55,7 +59,7 @@ jobs:
5559
run: |
5660
ctest -D ExperimentalStart
5761
ctest -D ExperimentalConfigure
58-
ctest -D ExperimentalBuild -j
62+
ctest -D ExperimentalBuild
5963
6064
- name: Install
6165
run: cmake --build build --target install

.github/workflows/make.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- '**CMakeLists.txt'
1313
pull_request:
1414
paths-exclude:
15-
- '.github/**'
15+
- '.github/cmake.yml'
1616
- '.gitignore'
1717
- 'README'
1818
- '**README'

0 commit comments

Comments
 (0)