latest from CODA-OSS and NITRO #2157
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
name: Build, unittest | |
on: [push] | |
jobs: | |
build-windows: | |
name: Windows | |
runs-on: [windows-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.7' | |
- name: configure | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_INSTALL_PREFIX=installWindows-Github -DPYTHON_VERSION="3.7" .. | |
- name: make | |
run: | | |
cd build | |
cmake --build . --config Release -j | |
cmake --build . --config Release --target install | |
- name: test | |
run: | | |
cd build | |
ctest -C Release --output-on-failure | |
build-linux: | |
name: Linux | |
runs-on: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.7' | |
- name: configure | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_INSTALL_PREFIX=installLinux-Github -DPYTHON_VERSION=3.7 .. | |
- name: make | |
run: | | |
cd build | |
cmake --build . -j 8 | |
cmake --build . --target install | |
- name: test | |
run: | | |
cd build | |
ctest --output-on-failure |