-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
561e2e0
commit fa3cb39
Showing
1 changed file
with
49 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [windows-latest] | ||
platform: [x64] | ||
configuration: [Release] | ||
name: ${{ matrix.os }}-CMake | ||
runs-on: ${{ matrix.os }} | ||
|
||
|
@@ -22,29 +24,63 @@ jobs: | |
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" .. | ||
mkdir out | ||
cd out | ||
cmake .. -DCMAKE_INSTALL_PREFIX=install\${{ matrix.platform }}-${{ matrix.configuration }} -DPYTHON_VERSION="3.7" | ||
- name: make | ||
run: | | ||
cd target-Release | ||
cmake --build . --config Release -j | ||
cmake --build . --config Release --target install | ||
cd out | ||
cmake --build . --config ${{ matrix.configuration }} -j | ||
cmake --build . --config ${{ matrix.configuration }} --target install | ||
- name: test | ||
run: | | ||
cd target-Release | ||
ctest -C Release --output-on-failure | ||
cd out | ||
ctest -C ${{ matrix.configuration }} --output-on-failure | ||
- name: Add msbuild to PATH | ||
uses: microsoft/setup-msbuild@v1 # https://github.com/marketplace/actions/setup-msbuild | ||
with: | ||
msbuild-architecture: x64 | ||
- name: msbuild | ||
run: | | ||
msbuild nitro.sln /p:configuration=${{ matrix.configuration }} | ||
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: | ||
- uses: actions/checkout@v2 | ||
- 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: make 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 | ||
uses: microsoft/setup-msbuild@v1 # https://github.com/marketplace/actions/setup-msbuild | ||
with: | ||
msbuild-architecture: x64 | ||
- name: msbuild | ||
run: | | ||
msbuild nitro.sln /p:configuration=Release | ||
#- name: mstest | ||
msbuild nitro.sln /p:configuration=${{ matrix.configuration }} | ||
#- name: vstest | ||
# uses: microsoft/[email protected] # https://github.com/marketplace/actions/vstest-action | ||
# with: | ||
# platform: ${{ matrix.platform }} | ||
# testAssembly: UnitTest.dll | ||
# searchFolder: D:\a\nitro\nitro\x64\Debug | ||
#- name: vstest | ||
# run: | | ||
# mstest /testcontainer:${RUNNER_WORKSPACE}\coda-oss\x64\Releast\Test.dll | ||
# mstest /testcontainer:${RUNNER_WORKSPACE}\coda-oss\x64\Releast\Test++.dll | ||
# vstest.console D:\a\nitro\nitro\x64\Debug\UnitTest.dll | ||
|
||
build-linux-cmake: | ||
strategy: | ||
|