Skip to content

Commit 9712acd

Browse files
committed
Add static build in the ci
1 parent 70a601d commit 9712acd

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build-windows.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515

1616
jobs:
1717
build:
18-
name: ${{ matrix.name }} ${{ matrix.build_type }}
18+
name: ${{ matrix.name }} ${{ matrix.build_type }} ${{ (matrix.is_shared == 'ON') && 'Shared' || 'Static' }}
1919
runs-on: ${{ matrix.os }}
2020

2121
env:
@@ -27,7 +27,7 @@ jobs:
2727
BOOST_EXE: boost_1_72_0-msvc-14.2
2828

2929
strategy:
30-
fail-fast: true
30+
fail-fast: false
3131
matrix:
3232
# Github Actions requires a single row to be added to the build matrix.
3333
# See https://help.github.com/en/articles/workflow-syntax-for-github-actions.
@@ -40,6 +40,11 @@ jobs:
4040
Release
4141
]
4242

43+
is_shared: [
44+
ON,
45+
OFF
46+
]
47+
4348
build_unstable: [ON]
4449
include:
4550
- name: windows-2022-cl
@@ -102,6 +107,7 @@ jobs:
102107
cmake -E remove_directory build
103108
if [ "${{ matrix.build_type }}" = "Release" ]; then
104109
cmake -B build \
110+
-DBUILD_SHARED_LIBS=${{ matrix.is_shared }} \
105111
-DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF \
106112
-DGTSAM_ALLOW_DEPRECATED_SINCE_V43=OFF \
107113
-DGTSAM_USE_BOOST_FEATURES=ON \
@@ -111,6 +117,7 @@ jobs:
111117
-DBOOST_LIBRARYDIR="${BOOST_ROOT_UNIX}/lib"
112118
else
113119
cmake -B build \
120+
-DBUILD_SHARED_LIBS=${{ matrix.is_shared }} \
114121
-DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF \
115122
-DGTSAM_ALLOW_DEPRECATED_SINCE_V43=OFF \
116123
-DGTSAM_USE_BOOST_FEATURES=OFF \

0 commit comments

Comments
 (0)