-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (39 loc) · 1.05 KB
/
CI-mpiwrapper.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CI-mpiwrapper
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
BUILD_TYPE: Debug
jobs:
build:
strategy:
matrix:
os: [ubuntu-22.04]
mpi: [MPICH, OpenMPI]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: Install ${{matrix.mpi}}
run: |
case "${{matrix.mpi}}" in
MPICH) packages=libmpich-dev;;
OpenMPI) packages=libopenmpi-dev;;
esac
sudo apt-get update
sudo apt-get install $packages
- name: Configure
run: |
cd mpiwrapper
cmake \
-B ${{github.workspace}}/build \
-DCMAKE_C_COMPILER=mpicc \
-DCMAKE_INSTALL_PREFIX=$HOME/mpiwrapper-${{matrix.mpi}}
- name: Build
run: cd mpiwrapper && cmake --build ${{github.workspace}}/build --verbose
# - name: Test
# working-directory: ${{github.workspace}}/build
# run: ctest -C ${{env.BUILD_TYPE}}
- name: Install
run: cd mpiwrapper && cmake --install ${{github.workspace}}/build