Compile with ninja
parent
a307fcb4bc
commit
2168d0f086
|
@ -2,6 +2,10 @@ name: Windows CI
|
||||||
|
|
||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: ${{ matrix.name }} ${{ matrix.build_type }}
|
name: ${{ matrix.name }} ${{ matrix.build_type }}
|
||||||
|
@ -16,19 +20,15 @@ jobs:
|
||||||
BOOST_EXE: boost_1_72_0-msvc-14.2
|
BOOST_EXE: boost_1_72_0-msvc-14.2
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# Github Actions requires a single row to be added to the build matrix.
|
build_type:
|
||||||
# See https://help.github.com/en/articles/workflow-syntax-for-github-actions.
|
- Debug
|
||||||
name: [
|
# - Release
|
||||||
windows-2019-cl,
|
|
||||||
]
|
build_unstable:
|
||||||
|
- ON
|
||||||
build_type: [
|
# - OFF
|
||||||
Debug,
|
|
||||||
Release
|
|
||||||
]
|
|
||||||
build_unstable: [ON]
|
|
||||||
include:
|
include:
|
||||||
- name: windows-2019-cl
|
- name: windows-2019-cl
|
||||||
os: windows-2019
|
os: windows-2019
|
||||||
|
@ -87,10 +87,15 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup msbuild
|
||||||
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
with:
|
||||||
|
arch: x${{ matrix.platform }}
|
||||||
|
|
||||||
- name: Configuration
|
- name: Configuration
|
||||||
run: |
|
run: |
|
||||||
cmake -E remove_directory build
|
cmake -E remove_directory build
|
||||||
cmake -B build -S . -DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF -DBOOST_ROOT="${env:BOOST_ROOT}" -DBOOST_INCLUDEDIR="${env:BOOST_ROOT}\boost\include" -DBOOST_LIBRARYDIR="${env:BOOST_ROOT}\lib"
|
cmake -G Ninja -B build -S . -DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF -DBOOST_ROOT="${env:BOOST_ROOT}" -DBOOST_INCLUDEDIR="${env:BOOST_ROOT}\boost\include" -DBOOST_LIBRARYDIR="${env:BOOST_ROOT}\lib"
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue