2727 matrix :
2828 config :
2929 - {
30- os : windows-latest ,
30+ os : windows-2019 ,
3131 arch : x64,
3232 python-arch : x64,
3333 python-ver : ' 3.8' ,
4040 generators : ' Ninja'
4141 }
4242 - {
43- os : windows-latest ,
43+ os : windows-2019 ,
4444 arch : x64,
4545 python-arch : x64,
4646 python-ver : ' 3.8' ,
@@ -53,25 +53,53 @@ jobs:
5353 generators : ' Ninja'
5454 }
5555 - {
56- os : windows-latest ,
56+ os : windows-2019 ,
5757 arch : x64,
5858 python-arch : x64,
5959 python-ver : ' 3.8' ,
60- name : ' windows-x64 MSVC 64bit' ,
60+ name : ' windows-x64 MSVC 64bit shared ' ,
6161 msvc-arch : x64,
62- artifact : ' windows_msvc64.7z' ,
62+ artifact : ' windows_msvc64_shared.7z' ,
63+ shared : ' yes' ,
6364 build_type : ' Debug' ,
6465 archiver : ' 7z a' ,
6566 generators : ' Visual Studio 16 2019'
6667 }
6768 - {
68- os : windows-latest ,
69+ os : windows-2019 ,
6970 arch : x86,
7071 python-arch : x86,
7172 python-ver : ' 3.8' ,
72- name : ' windows-x86 MSVC 32bit' ,
73+ name : ' windows-x86 MSVC 32bit shared ' ,
7374 msvc-arch : x86,
74- artifact : ' windows_msvc32.7z' ,
75+ artifact : ' windows_msvc32_shared.7z' ,
76+ shared : ' yes' ,
77+ build_type : ' Debug' ,
78+ archiver : ' 7z a' ,
79+ generators : ' Visual Studio 16 2019'
80+ }
81+ - {
82+ os : windows-2019,
83+ arch : x64,
84+ python-arch : x64,
85+ python-ver : ' 3.8' ,
86+ name : ' windows-x64 MSVC 64bit static' ,
87+ msvc-arch : x64,
88+ artifact : ' windows_msvc64_static.7z' ,
89+ shared : ' no' ,
90+ build_type : ' Debug' ,
91+ archiver : ' 7z a' ,
92+ generators : ' Visual Studio 16 2019'
93+ }
94+ - {
95+ os : windows-2019,
96+ arch : x86,
97+ python-arch : x86,
98+ python-ver : ' 3.8' ,
99+ name : ' windows-x86 MSVC 32bit static' ,
100+ msvc-arch : x86,
101+ artifact : ' windows_msvc32_static.7z' ,
102+ shared : ' no' ,
75103 build_type : ' Debug' ,
76104 archiver : ' 7z a' ,
77105 generators : ' Visual Studio 16 2019'
@@ -174,7 +202,7 @@ jobs:
174202 working-directory : instdir
175203 run : |
176204 ls -laR
177- ${{ matrix.config.archiver }} ../${{ matrix.config.artifact }} .
205+ ${{ matrix.config.archiver }} ../${{ matrix.config.artifact }} . ../test*
178206
179207 - name : ' 📤 Upload artifact'
180208 if : always()
@@ -195,8 +223,21 @@ jobs:
195223 arch : x64,
196224 python-arch : x64,
197225 python-ver : ' 3.8' ,
198- name : ' macos-x64 cmake' ,
199- artifact : ' macos-cmake-x64.7z' ,
226+ name : ' macos-x64 cmake shared' ,
227+ shared : ' yes' ,
228+ artifact : ' macos-cmake-shared-x64.7z' ,
229+ build_type : ' Debug' ,
230+ archiver : ' 7za a' ,
231+ generators : ' Ninja'
232+ }
233+ - {
234+ os : macos-latest,
235+ arch : x64,
236+ python-arch : x64,
237+ python-ver : ' 3.8' ,
238+ name : ' macos-x64 cmake static' ,
239+ shared : ' no' ,
240+ artifact : ' macos-cmake-static-x64.7z' ,
200241 build_type : ' Debug' ,
201242 archiver : ' 7za a' ,
202243 generators : ' Ninja'
@@ -235,7 +276,8 @@ jobs:
235276 -B . \
236277 -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
237278 -G "${{ matrix.config.generators }}" \
238- -DCMAKE_INSTALL_PREFIX:PATH=instdir
279+ -DCMAKE_INSTALL_PREFIX:PATH=instdir \
280+ -DBUILD_SHARED_LIB= ${{ matrix.config.shared }}
239281 cmake --build . --config ${{ matrix.config.build_type }}
240282 cmake --install . --strip
241283 ctest -VV -C ${{ matrix.config.build_type }}
@@ -303,7 +345,7 @@ jobs:
303345 working-directory : instdir
304346 run : |
305347 ls -laR
306- ${{ matrix.config.archiver }} ../${{ matrix.config.artifact }} .
348+ ${{ matrix.config.archiver }} ../${{ matrix.config.artifact }} . ../test*
307349
308350 - name : ' 📤 Upload artifact'
309351 if : always()
@@ -324,8 +366,9 @@ jobs:
324366 arch : x64,
325367 python-arch : x64,
326368 python-ver : ' 3.8' ,
327- name : ' ubuntu-x64 cmake' ,
328- artifact : ' ubuntu-cmake-x64.7z' ,
369+ name : ' ubuntu-x64 cmake shared' ,
370+ shared : ' yes' ,
371+ artifact : ' ubuntu-cmake-shared-x64.7z' ,
329372 build_type : ' Debug' ,
330373 archiver : ' 7z a' ,
331374 generators : ' Ninja'
@@ -335,8 +378,33 @@ jobs:
335378 arch : x86,
336379 python-arch : x86,
337380 python-ver : ' 3.8' ,
338- name : ' ubuntu-x86 cmake' ,
339- artifact : ' ubuntu-cmake-x86.7z' ,
381+ name : ' ubuntu-x86 cmake shared' ,
382+ shared : ' yes' ,
383+ artifact : ' ubuntu-cmake-shared-x86.7z' ,
384+ build_type : ' Debug' ,
385+ archiver : ' 7z a' ,
386+ generators : ' Ninja'
387+ }
388+ - {
389+ os : ubuntu-latest,
390+ arch : x64,
391+ python-arch : x64,
392+ python-ver : ' 3.8' ,
393+ name : ' ubuntu-x64 cmake static' ,
394+ shared : ' no' ,
395+ artifact : ' ubuntu-cmake-static-x64.7z' ,
396+ build_type : ' Debug' ,
397+ archiver : ' 7z a' ,
398+ generators : ' Ninja'
399+ }
400+ - {
401+ os : ubuntu-latest,
402+ arch : x86,
403+ python-arch : x86,
404+ python-ver : ' 3.8' ,
405+ name : ' ubuntu-x86 cmake static' ,
406+ shared : ' no' ,
407+ artifact : ' ubuntu-cmake-static-x86.7z' ,
340408 build_type : ' Debug' ,
341409 archiver : ' 7z a' ,
342410 generators : ' Ninja'
@@ -393,7 +461,8 @@ jobs:
393461 -B . \
394462 -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
395463 -G "${{ matrix.config.generators }}" \
396- -DCMAKE_INSTALL_PREFIX:PATH=instdir
464+ -DCMAKE_INSTALL_PREFIX:PATH=instdir \
465+ -DBUILD_SHARED_LIBS=${{ matrix.config.shared }}
397466 cmake --build . --config ${{ matrix.config.build_type }}
398467 cmake --install . --strip
399468 ctest -VV -C ${{ matrix.config.build_type }}
@@ -430,7 +499,7 @@ jobs:
430499 working-directory : instdir
431500 run : |
432501 ls -laR
433- ${{ matrix.config.archiver }} ../${{ matrix.config.artifact }} .
502+ ${{ matrix.config.archiver }} ../${{ matrix.config.artifact }} . ../test*
434503
435504 - name : ' 📤 Upload artifact'
436505 if : always()
0 commit comments