Squashed 'externals/coda-oss/' changes from 2352e4859..f4b0a7109 (#761) #2889
This file contains hidden or 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: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-cmake-windows: | |
strategy: | |
matrix: | |
os: [windows-latest] | |
platform: [x64] | |
python-version: ['3.7'] | |
configuration: [Release] | |
name: ${{ matrix.os }}-${{ matrix.python-version }}-CMake | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Skip Duplicate Actions | |
uses: fkirc/skip-duplicate-actions@v5.3.1 | |
- uses: actions/checkout@v4 # https://github.com/marketplace/actions/checkout | |
- name: Set up Python | |
uses: actions/setup-python@v5 # https://github.com/marketplace/actions/setup-python | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: configure | |
run: | | |
mkdir out | |
cd out | |
cmake .. -DCMAKE_INSTALL_PREFIX=install\${{ matrix.platform }}-${{ matrix.configuration }} -DPYTHON_VERSION="${{ matrix.python-version }}" | |
- name: make | |
run: | | |
cd out | |
cmake --build . --config ${{ matrix.configuration }} -j | |
cmake --build . --config ${{ matrix.configuration }} --target install | |
- name: test | |
run: | | |
cd out/six | |
ctest -C ${{ matrix.configuration }} --output-on-failure | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v1.1 # https://github.com/marketplace/actions/setup-msbuild | |
with: | |
msbuild-architecture: x64 | |
- name: msbuild | |
run: | | |
msbuild six.sln /p:configuration=${{ matrix.configuration }} | |
msbuild six.sln /p:configuration=${{ matrix.configuration }} /t:Clean | |
build-msbuild-windows: | |
strategy: | |
matrix: | |
os: [windows-latest] | |
platform: [x64] | |
configuration: [Debug] # Debug turns on more compiler warnings | |
name: ${{ matrix.os }}-msbuild | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Skip Duplicate Actions | |
uses: fkirc/skip-duplicate-actions@v5.3.1 | |
- uses: actions/checkout@v4 # https://github.com/marketplace/actions/checkout | |
- name: configure CODA-OSS | |
run: | | |
mkdir externals\coda-oss\out | |
cd externals\coda-oss\out | |
cmake .. -DCMAKE_INSTALL_PREFIX=install\${{ matrix.platform }}-${{ matrix.configuration }} -DENABLE_PYTHON=OFF | |
- name: build CODA-OSS | |
run: | | |
cd externals\coda-oss\out | |
cmake --build . --config ${{ matrix.configuration }} -j | |
cmake --build . --config ${{ matrix.configuration }} --target install | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v1.1 # https://github.com/marketplace/actions/setup-msbuild | |
with: | |
msbuild-architecture: x64 | |
- name: msbuild | |
run: | | |
msbuild six.sln /p:configuration=${{ matrix.configuration }} | |
msbuild six.sln /p:configuration=${{ matrix.configuration }} /t:Clean | |
#- name: vstest | |
# uses: microsoft/vstest-action@v1.0.0 # https://github.com/marketplace/actions/vstest-action | |
# with: | |
# platform: ${{ matrix.platform }} | |
# testAssembly: UnitTest.dll | |
# searchFolder: D:\a\nitro\nitro\x64\Debug | |
#- name: vstest | |
# run: | | |
# vstest.console D:\a\nitro\nitro\x64\Debug\UnitTest.dll | |
build-linux-cmake: | |
strategy: | |
matrix: | |
os: [ubuntu-22.04] | |
python-version: ['3.7'] | |
name: ${{ matrix.os }}-${{ matrix.python-version }}-CMake | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Skip Duplicate Actions | |
uses: fkirc/skip-duplicate-actions@v5.3.1 | |
- uses: actions/checkout@v4 # https://github.com/marketplace/actions/checkout | |
- name: Set up Python | |
uses: actions/setup-python@v5 # https://github.com/marketplace/actions/setup-python | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: configure | |
run: | | |
mkdir target | |
cd target | |
cmake -DCMAKE_INSTALL_PREFIX=install${{ matrix.os }}CMake-Github -DPYTHON_VERSION=${{ matrix.python-version }} .. | |
- name: build | |
run: | | |
cd target | |
cmake --build . -j 8 | |
cmake --build . --target install | |
- name: test | |
run: | | |
cd target/six | |
ctest --output-on-failure |