Skip to content

Merge branch 'main' into cpp17 #2209

Merge branch 'main' into cpp17

Merge branch 'main' into cpp17 #2209

name: Build, unittest
on: [push]
jobs:
build-cmake-windows:
strategy:
matrix:
os: [windows-latest]
name: ${{ matrix.os }}-CMake
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.7'
- name: configure
run: |
mkdir target-Release
cd target-Release
cmake -DCMAKE_INSTALL_PREFIX=install${{ matrix.os }}CMake-Github -DPYTHON_VERSION="3.7" ..
- name: make
run: |
cd target-Release
cmake --build . --config Release -j
cmake --build . --config Release --target install
- name: test
run: |
cd target-Release
ctest -C Release --output-on-failure
- name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
msbuild-architecture: x64
- name: msbuild
run: |
msbuild nitro.sln /p:configuration=Release
#- name: mstest
# run: |
# mstest /testcontainer:${RUNNER_WORKSPACE}\coda-oss\x64\Releast\Test.dll
# mstest /testcontainer:${RUNNER_WORKSPACE}\coda-oss\x64\Releast\Test++.dll
build-linux-cmake:
strategy:
matrix:
os: [ubuntu-latest]
name: ${{ matrix.os }}-CMake
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.7'
- name: configure
run: |
mkdir target-Release
cd target-Release
cmake -DCMAKE_INSTALL_PREFIX=install${{ matrix.os }}CMake-Github -DPYTHON_VERSION=3.7 ..
- name: make
run: |
cd target-Release
# using the default number of threads (-j) causes G++ to crash
cmake --build . -j 6
cmake --build . --target install
- name: test
run: |
cd target-Release
ctest --output-on-failure