Compile with ninja

release/4.3a0
Tal Regev 2023-06-30 19:43:34 +03:00 committed by Varun Agrawal
parent a307fcb4bc
commit 2168d0f086
1 changed files with 18 additions and 13 deletions

View File

@ -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_type: [ build_unstable:
Debug, - ON
Release # - OFF
]
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: |