Skip to content

Commit

Permalink
Use Ninja to reduce compilation time
Browse files Browse the repository at this point in the history
  • Loading branch information
weslleyspereira committed Mar 8, 2022
1 parent 69a8639 commit 93dd51c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ on:
- 'SLmake.inc.example'
pull_request:
paths-exclude:
- '.github/**'
- '.github/make.yml'
- '.gitignore'
- 'README'
- '**README'
- 'LICENSE'
- 'CMAKE**'
- '**CMakeLists.txt'
- '**Makefile'
- 'SLmake.inc.example'

env:
CFLAGS: "-Wall -pedantic"
FFLAGS: "-fcheck=all"
FFLAGS: "-fcheck=all,no-bounds"
BUILD_TYPE: Release

defaults:
Expand All @@ -39,12 +39,16 @@ jobs:
- name: Checkout ScaLAPACK
uses: actions/checkout@v2

- name: Install ninja-build tool
uses: seanmiddleditch/gha-setup-ninja@v3

- name: Install MPI
run: sudo apt install mpich

- name: CMake configuration
run: >
cmake -B build
-G Ninja
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-D CMAKE_INSTALL_PREFIX=${{github.workspace}}/scalapack_install
-D BUILD_SHARED_LIBS=ON
Expand All @@ -55,7 +59,7 @@ jobs:
run: |
ctest -D ExperimentalStart
ctest -D ExperimentalConfigure
ctest -D ExperimentalBuild -j
ctest -D ExperimentalBuild
- name: Install
run: cmake --build build --target install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- '**CMakeLists.txt'
pull_request:
paths-exclude:
- '.github/**'
- '.github/cmake.yml'
- '.gitignore'
- 'README'
- '**README'
Expand Down

0 comments on commit 93dd51c

Please sign in to comment.