forked from isis-group/isis
-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (27 loc) · 955 Bytes
/
Copy pathc-cpp.yml
File metadata and controls
31 lines (27 loc) · 955 Bytes
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
name: C/C++ CI
on:
push:
branches: [ master, api_change ]
pull_request:
branches: [ master, api_change ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: apt-get
run: sudo apt-get install cmake libboost-iostreams-dev libboost-system-dev libboost-test-dev libjsoncpp-dev libfftw3-dev libclfft-dev libopenjp2-7-dev libssh2-1-dev libncurses-dev libpython3-dev python3-pybind11 libgsl-dev libmuparser-dev libeigen3-dev
- name: cmake
run: |
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/tmp -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=on -DISIS_USE_FFTW=on -DISIS_USE_GSL=ON -DISIS_IOPLUGIN_NULL=on -DISIS_IOPLUGIN_SFTP=on -DUSE_SYSTEM_PYBIND=ON
- name: make
run: |
cd build
make install
- name: test
run: |
cd build
export LD_LIBRARY_PATH=/tmp/lib:$LD_LIBRARY_PATH
ctest --output-on-failure