JSON Update. #686
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GitHub workflow to enable continuous integration | |
name: Continuous Integration | |
# This workflow is triggered on pushes and pull requests to the repository. | |
# This workflow will also run each Monday on the default branch (i.e. master) | |
on: | |
schedule: | |
- cron: '0 0 * * 1' | |
push: | |
branches: '**' | |
pull_request: | |
branches: 'master' | |
jobs: | |
build: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ ubuntu-20.04, macos-11 ] | |
cxx: [ clang++, g++-10 ] | |
build_type: [ Debug, Release ] | |
steps: | |
- name: Install hdf5 libraries for Linux | |
if: matrix.os == 'ubuntu-20.04' | |
run: sudo apt-get install libhdf5-dev | |
- name: Install hdf5 libraries for MacOS | |
if: matrix.os == 'macos-11' | |
run: brew install hdf5 | |
- name: which CXX | |
run: | | |
which ${{matrix.cxx}} | |
${{matrix.cxx}} --version | |
- uses: actions/checkout@v3 | |
- name: mkdir bin | |
run: mkdir bin | |
- name: cmake | |
run: cmake -DPYTHON_EXECUTABLE=$(which python3) -D CMAKE_CXX_COMPILER=`which ${{matrix.cxx}}` -D CMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_COMPILER_FLAGS="-DNJOY_GNDSTK_DISABLE_HDF5" .. | |
working-directory: ./bin | |
- name: make | |
run: make -j2 | |
working-directory: ./bin | |
- name: ctest | |
run: ctest -j2 | |
working-directory: ./bin | |
- name: make GNDStk.python | |
run: make GNDStk.python -j2 | |
working-directory: ./bin | |
- name: python -m unittest | |
run: | | |
cp ../bin/*.so . | |
python3 -m unittest discover -v -p "Test*" | |
working-directory: ./python |