-
Notifications
You must be signed in to change notification settings - Fork 80
67 lines (51 loc) · 1.67 KB
/
code-tests.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
name: Run code build tests
on:
push:
paths-ignore:
- 'doc/**'
jobs:
without-mpi:
name: Tests without MPI
runs-on: ubuntu-latest
strategy:
matrix:
beagle: [--with-beagle, --without-beagle]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Readline
run: sudo apt-get install libreadline-dev
- name: Install Beagle if needed
if: ${{ matrix.beagle == '--with-beagle' }}
run: sudo apt-get install libhmsbeagle-dev
- name: Configure project
run: ./configure --disable-doc --without-mpi ${{ matrix.beagle }} CC=clang
- name: Build project
run: make -j 2
- name: Run test (not with Beagle for now)
if: ${{ matrix.beagle != '--with-beagle' }}
run: make check
with-mpi:
name: Tests with MPI
runs-on: ubuntu-latest
strategy:
matrix:
beagle: [--with-beagle, --without-beagle]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Readline
run: sudo apt-get install libreadline-dev
- name: Install Beagle if needed
if: ${{ matrix.beagle == '--with-beagle' }}
run: sudo apt-get install libhmsbeagle-dev
- name: Install MPI if needed
run: sudo apt-get install libopenmpi-dev
- name: Configure project
run: ./configure --disable-doc --with-mpi ${{ matrix.beagle }} CC=clang CFLAGS="$( mpicc --showme:compile )" LDFLAGS="$( mpicc --showme:link )"
- name: Build project
run: make -j 2
- name: Run test (not with Beagle for now)
if: ${{ matrix.beagle != '--with-beagle' }}
run: make check