-
Notifications
You must be signed in to change notification settings - Fork 53
49 lines (43 loc) · 1.33 KB
/
cmake.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: cmake ubuntu openmpi latest
#with AddressSanitizer
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
env:
CC: mpicc
FC: mpifort
FCFLAGS: "-fallow-argument-mismatch"
# LDFLAGS: "-static-libasan"
# ASAN_OPTIONS: "detect_odr_violation=0"
steps:
- uses: actions/checkout@v3
- name: Installs
run: |
set -x
sudo apt-get update
sudo apt-get install netcdf-bin libnetcdf-dev doxygen graphviz wget gfortran \
libjpeg-dev libz-dev openmpi-bin libopenmpi-dev cmake pnetcdf-bin libpnetcdf-dev libnetcdff-dev
- name: cmake build
uses: ./.github/actions/parallelio_cmake
with:
parallelio_version: ${{ env.GITHUB_SHA }}
enable_fortran: True
enable_logging: True
install_prefix: ${GITHUB_WORKSPACE}/parallelio
mpiexec_flags: --oversubscribe
# extra_cflags: "-g -O0 -fsanitize=address -fno-omit-frame-pointer -static-libasan"
# extra_fflags: "-g -O0 -fsanitize=address -fno-omit-frame-pointer -static-libasan"
- name: parallelio tests
run: |
pushd $GITHUB_WORKSPACE/build
make tests VERBOSE=1
ctest -VV
popd
# - name: Setup tmate session
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3