@@ -2,7 +2,7 @@ name: CMake Build
22
33on :
44 push :
5- branches : [ master ]
5+ branches : [ master, develop ]
66
77env :
88 # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
1818 runs-on : ${{ matrix.os }}
1919 strategy :
2020 matrix :
21- os : [ubuntu-latest, macOS-latest]
21+ os : [ubuntu-latest, macOS-latest, windows-latest ]
2222
2323 steps :
2424 - uses : actions/checkout@v2
2727 if : ${{ contains( runner.os, 'Linux' ) }}
2828 run : |
2929 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
3135 - name : Create Build Environment
3236 # Some projects don't allow in-source building, so create a separate build directory
3337 # We'll use this as our working directory for all subsequent commands
3842 # access regardless of the host operating system
3943 shell : bash
4044 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
4445 if : ${{ contains( runner.os, 'Linux' ) }}
4546 run : |
4647 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
5152 if : ${{ contains( runner.os, 'macOS' ) }}
5253 run : |
5354 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
5462
5563 - name : Build
5664 working-directory : ${{runner.workspace}}/build
6169 - name : Test
6270 working-directory : ${{runner.workspace}}/build
6371 shell : bash
72+ if : ${{ contains( runner.os, 'Linux' ) || contains( runner.os, 'macOS' )}}
6473 # Execute tests
6574 run : ./test/saf_test
0 commit comments