-
Notifications
You must be signed in to change notification settings - Fork 8
68 lines (55 loc) · 1.5 KB
/
build-and-test.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
68
name: axl build
permissions:
actions: write
on:
push:
branches:
- main
pull_request:
jobs:
build-and-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
target: [Debug, Release]
mpi: [seq, par]
static: [both, static]
name: ${{ matrix.os }}-${{ matrix.target }}-${{ matrix.mpi }}-${{ matrix.static }}
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v3
with:
path: axl
fetch-depth: 0
- name: get deps
uses: ecp-veloc/github-actions/get-scr-os-deps@main
with:
os: ${{ matrix.os }}
mpi: ${{ matrix.mpi }}
## needed for gtimeout
- name: mac-only-dep
if: startsWith(matrix.os, 'macos')
shell: bash
run: |
brew install coreutils
- name: build kvtree
uses: ecp-veloc/github-actions/build-ecp-veloc-component@main
with:
component: kvtree
mpi: ${{ matrix.mpi }}
- name: configure
uses: ecp-veloc/github-actions/cmake-configure@main
with:
component: axl
target: ${{ matrix.target }}
cmake_line: "-DMPI=${{ matrix.mpi == 'par' }}"
static: ${{ matrix.static == 'static' }}
- name: build
uses: ecp-veloc/github-actions/cmake-build@main
with:
component: axl
- name: test
uses: ecp-veloc/github-actions/cmake-test@main
with:
component: axl