Skip to content

Commit 2e11dfb

Browse files
committed
ci: trilinos integration test
Signed-off-by: Carl Pearson <[email protected]>
1 parent 4840e90 commit 2e11dfb

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Linux-Trilinos-Integration
2+
3+
# only run most recent workflow in branch
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
cancel-in-progress: true
7+
8+
on:
9+
pull_request:
10+
paths-ignore:
11+
- README.md
12+
- 'docs/**'
13+
types: [ opened, reopened, synchronize ]
14+
15+
jobs:
16+
Trilinos-develop-OpenMPI:
17+
continue-on-error: true # failure won't fail the workflow
18+
env:
19+
TRILINOS_BUILD: ${{ github.workspace }}/trilinos-build
20+
TRILINOS_INSTALL: ${{ github.workspace }}/trilinos-install
21+
COMM_SRC: ${{ github.workspace }}
22+
runs-on: ubuntu-latest
23+
timeout-minutes: 60
24+
steps:
25+
- name: Install MPI
26+
run: |
27+
sudo apt-get update && sudo apt-get install -y libopenmpi-dev openmpi-bin cmake
28+
which mpirun
29+
mpirun --version
30+
which mpicxx
31+
mpicxx --version
32+
- name: Install openblas
33+
run: sudo apt-get install libopenblas-dev
34+
- name: Check out repository code
35+
uses: actions/checkout@v4
36+
- name: Check out Trilinos
37+
uses: actions/checkout@v4
38+
with:
39+
repository: trilinos/Trilinos
40+
fetch-depth: 1
41+
ref: develop # FIXME: master, once master has support
42+
path: trilinos
43+
- name: symlink kokkos-comm
44+
run: |
45+
ln -s "${{ github.workspace }}" trilinos/packages/kokkos-comm
46+
- name: Configure Trilinos
47+
run: >
48+
cmake -S trilinos -B "$TRILINOS_BUILD" \
49+
-DCMAKE_INSTALL_PREFIX="$TRILINOS_INSTALL" \
50+
-DTPL_ENABLE_MPI=ON \
51+
-DTrilinos_ENABLE_KokkosComm=ON \
52+
-DTrilinos_ENABLE_Tpetra=ON \
53+
-DTpetra_ENABLE_TESTS=ON
54+
- name: Build Trilinos
55+
run: cmake --build "$TRILINOS_BUILD" --parallel $(nproc)
56+
- name: Test Exists
57+
run: "[ -f \"$TRILINOS_BUILD/packages/tpetra/core/test/KokkosComm/TpetraCore_KokkosComm_include.exe\" ] || exit 1"
58+
- name: Install Trilinos
59+
run: cmake --build "$TRILINOS_BUILD" --target install

0 commit comments

Comments
 (0)