@@ -2,7 +2,7 @@ name: CMake Build
2
2
3
3
on :
4
4
push :
5
- branches : [ master ]
5
+ branches : [ master, develop ]
6
6
7
7
env :
8
8
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
18
18
runs-on : ${{ matrix.os }}
19
19
strategy :
20
20
matrix :
21
- os : [ubuntu-latest, macOS-latest]
21
+ os : [ubuntu-latest, macOS-latest, windows-latest ]
22
22
23
23
steps :
24
24
- uses : actions/checkout@v2
27
27
if : ${{ contains( runner.os, 'Linux' ) }}
28
28
run : |
29
29
sudo apt-get update && sudo apt-get install libhdf5-dev libnetcdf-dev libnetcdff-dev liblapack3 liblapack-dev libopenblas-base libopenblas-dev liblapacke-dev
30
-
30
+ - name : Fetch OpenBLAS (Windows)
31
+ if : ${{ contains( runner.os, 'Windows' ) }}
32
+ run : |
33
+ curl https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.26/OpenBLAS-0.3.26-x64.zip -L -o tmp.zip
34
+ 7z x ./tmp.zip -oOpenBLAS
31
35
- name : Create Build Environment
32
36
# Some projects don't allow in-source building, so create a separate build directory
33
37
# We'll use this as our working directory for all subsequent commands
38
42
# access regardless of the host operating system
39
43
shell : bash
40
44
working-directory : ${{runner.workspace}}/build
41
- # Note the current convention is to use the -S and -B options here to specify source
42
- # and build directories, but this is only available with CMake 3.13 and higher.
43
- # The CMake binaries on the Github Actions machines are (as of this writing) 3.12
44
45
if : ${{ contains( runner.os, 'Linux' ) }}
45
46
run : |
46
47
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSAF_PERFORMANCE_LIB=SAF_USE_OPEN_BLAS_AND_LAPACKE -DSAF_ENABLE_TRACKER_MODULE=1 -DSAF_ENABLE_SOFA_READER_MODULE=1 -DSAF_ENABLE_HADES_MODULE=1
51
52
if : ${{ contains( runner.os, 'macOS' ) }}
52
53
run : |
53
54
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSAF_PERFORMANCE_LIB=SAF_USE_APPLE_ACCELERATE -DSAF_ENABLE_TRACKER_MODULE=1 -DSAF_ENABLE_SOFA_READER_MODULE=1 -DSAF_ENABLE_HADES_MODULE=1
55
+
56
+ - name : Configure CMake (Windows)
57
+ shell : bash
58
+ working-directory : ${{runner.workspace}}/build
59
+ if : ${{ contains( runner.os, 'Windows' ) }}
60
+ run : |
61
+ cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSAF_PERFORMANCE_LIB=SAF_USE_OPEN_BLAS_AND_LAPACKE -DOPENBLAS_LIBRARY=$GITHUB_WORKSPACE/OpenBLAS/lib/libopenblas.lib -DLAPACKE_LIBRARY=$GITHUB_WORKSPACE/OpenBLAS/lib/libopenblas.lib -DOPENBLAS_HEADER_PATH=$GITHUB_WORKSPACE/OpenBLAS/include/ -DSAF_ENABLE_TRACKER_MODULE=1 -DSAF_ENABLE_SOFA_READER_MODULE=1 -DSAF_ENABLE_HADES_MODULE=1
54
62
55
63
- name : Build
56
64
working-directory : ${{runner.workspace}}/build
61
69
- name : Test
62
70
working-directory : ${{runner.workspace}}/build
63
71
shell : bash
72
+ if : ${{ contains( runner.os, 'Linux' ) || contains( runner.os, 'macOS' )}}
64
73
# Execute tests
65
74
run : ./test/saf_test
0 commit comments