-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
100 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
|
||
- name: configure | ||
shell: bash | ||
run: >- | ||
cmake | ||
--preset default | ||
-Dparallel:BOOL=${{ matrix.parallel }} | ||
-Dscotch:BOOL=${{ matrix.scotch }} | ||
-Dmetis:BOOL=${{ matrix.metis }} | ||
-DLAPACK_VENDOR=${{ matrix.lapack_vendor }} | ||
- name: build, test release | ||
shell: bash | ||
run: cmake --workflow --preset default | ||
|
||
- name: install package | ||
shell: bash | ||
run: cmake --install build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
|
||
- name: Install prereqs (Linux) | ||
shell: bash | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt update | ||
sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin liblapack-dev libscalapack-openmpi-dev ninja-build | ||
- name: Install prereqs (macOS) | ||
shell: bash | ||
if: runner.os == 'macOS' | ||
run: brew install open-mpi ninja scalapack | ||
|
||
- name: Install OpenBLAS (Linux) | ||
shell: bash | ||
if: ${{ matrix.lapack_vendor == 'OpenBLAS' }} | ||
run: sudo apt install --no-install-recommends libopenblas-dev | ||
|
||
- name: Build METIS | ||
shell: bash | ||
if: ${{ matrix.metis }} | ||
run: cmake -P scripts/build_metis.cmake | ||
|
||
- name: Build scotch | ||
shell: bash | ||
if: ${{ matrix.scotch }} | ||
run: cmake -P scripts/build_scotch.cmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
|
||
- name: configure example | ||
shell: bash | ||
run: cmake -S example -B example/build | ||
|
||
- name: build example | ||
shell: bash | ||
run: cmake --build example/build | ||
|
||
- name: test example | ||
shell: bash | ||
run: ctest --test-dir example/build -V | ||
|
||
- name: Scotch example | ||
shell: bash | ||
if: ${{ matrix.scotch }} | ||
run: | | ||
cmake -S example/scotch -Bexample/scotch/build | ||
cmake --build example/scotch/build | ||
ctest --test-dir example/scotch/build | ||
- name: print config log | ||
shell: bash | ||
if: ${{ failure() && matrix.scotch }} | ||
run: cat example/scotch/build/CMakeFiles/CMakeConfigureLog.yaml | ||
|
||
- name: METIS example | ||
shell: bash | ||
if: ${{ matrix.metis }} | ||
run: | | ||
cmake -S example/metis -Bexample/metis/build | ||
cmake --build example/metis/build | ||
ctest --test-dir example/metis/build | ||
- name: print config log | ||
shell: bash | ||
if: ${{ failure() && matrix.metis }} | ||
run: cat example/metis/build/CMakeFiles/CMakeConfigureLog.yaml |