forked from casacore/casacore
-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (49 loc) · 1.3 KB
/
osx.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
name: macOS
on:
push:
branches: [ master ]
tags: [ "*" ]
pull_request:
branches: [ master ]
jobs:
osx:
runs-on: macos-10.15
steps:
- name: checkout
uses: actions/checkout@v2
- name: install homebrew deps
run: brew install fftw hdf5 boost-python3 cfitsio wcslib wget gfortran gsl
- name: pip install numpy
run: pip3 install numpy
- name: get WSRT measures
run: wget ftp://ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar -O WSRT_Measures.ztar
- name: make build folder
run: |
mkdir -p build
cd build
tar zxvf ../WSRT_Measures.ztar
- name: configure
run: |
cd build
cmake \
-DBUILD_TESTING=ON \
-DCMAKE_PREFIX_PATH=/usr/local/ \
-DUSE_OPENMP=OFF \
-DUSE_HDF5=ON \
-DBUILD_PYTHON=OFF \
-DBUILD_PYTHON3=ON \
-DBoost_NO_BOOST_CMAKE=True \
-DCMAKE_Fortran_COMPILER=gfortran-10 \
-DDATA_DIR=. ..
- name: build
run: |
cd build
make -j
- name: run tests
run: |
cd build
CTEST_OUTPUT_ON_FAILURE=1 ctest -E tConvert
- name: install
run: |
cd build
make install