Skip to content

Commit 0c0e283

Browse files
authored
Merge pull request #807 from streeve/nightly_hypre
Add hypre to nightly builds
2 parents ac3dc54 + a911023 commit 0c0e283

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/Nightly.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111

1212
jobs:
1313
CI:
14+
defaults:
15+
run:
16+
shell: bash
1417
strategy:
1518
matrix:
1619
backend: ["OPENMP", "SERIAL"]
@@ -44,11 +47,25 @@ jobs:
4447
cmake -B build -DCMAKE_PREFIX_PATH=${HOME}/kokkos -DCMAKE_INSTALL_PREFIX=$HOME/arborx
4548
cmake --build build --parallel 2
4649
cmake --install build
50+
- name: Checkout hypre
51+
uses: actions/checkout@v3
52+
with:
53+
repository: hypre-space/hypre
54+
ref: master
55+
path: hypre
56+
- name: Build hypre
57+
working-directory: hypre/src
58+
run: |
59+
[[ ${{ matrix.backend }} == 'OPENMP' ]] && hypre_cmake_opts+=( -DHYPRE_WITH_OPENMP=ON )
60+
cmake -B build \
61+
-DHYPRE_INSTALL_PREFIX=$HOME/hypre -DHYPRE_WITH_MPI=ON ${hypre_cmake_opts[@]}
62+
cmake --build build --parallel 2
63+
cmake --install build
4764
- name: Checkout Cabana
4865
uses: actions/checkout@v3
4966
- name: Build Cabana
5067
run: |
51-
cmake -B build -DCMAKE_INSTALL_PREFIX=$HOME/Cabana -DCMAKE_PREFIX_PATH="$HOME/kokkos;$HOME/arborx" -DCabana_ENABLE_TESTING=ON -DCabana_ENABLE_EXAMPLES=ON -DCabana_REQUIRE_${{ matrix.backend }}=ON -DVALGRIND_EXECUTABLE=False ${{ github.event.inputs.cmake_args }}
68+
cmake -B build -DCMAKE_INSTALL_PREFIX=$HOME/Cabana -DCMAKE_PREFIX_PATH="$HOME/kokkos;$HOME/arborx;$HOME/hypre" -DCabana_ENABLE_TESTING=ON -DCabana_ENABLE_EXAMPLES=ON -DCabana_REQUIRE_${{ matrix.backend }}=ON -DVALGRIND_EXECUTABLE=False ${{ github.event.inputs.cmake_args }}
5269
cmake --build build --parallel 2
5370
ctest --test-dir build --output-on-failure ${{ github.event.inputs.ctest_args }}
5471
cmake --install build

0 commit comments

Comments
 (0)