Skip to content

Commit c6cd2b1

Browse files
committed
ci: Add task for static library on Windows + CMake
1 parent 020bf69 commit c6cd2b1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.cirrus.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,12 +383,17 @@ task:
383383
# Ignore MSBuild warning MSB8029.
384384
# See: https://learn.microsoft.com/en-us/visualstudio/msbuild/errors/msb8029?view=vs-2022
385385
IgnoreWarnIntDirInTempDetected: 'true'
386+
matrix:
387+
- env:
388+
BUILD_SHARED_LIBS: ON
389+
- env:
390+
BUILD_SHARED_LIBS: OFF
386391
git_show_script:
387392
# Print commit to allow reproducing the job outside of CI.
388393
- git show --no-patch
389394
configure_script:
390395
- '%x64_NATIVE_TOOLS%'
391-
- cmake -E env CFLAGS="/WX" cmake -G "Visual Studio 17 2022" -A x64 -S . -B build -DSECP256K1_ENABLE_MODULE_RECOVERY=ON -DSECP256K1_BUILD_EXAMPLES=ON
396+
- cmake -E env CFLAGS="/WX" cmake -A x64 -B build -DSECP256K1_ENABLE_MODULE_RECOVERY=ON -DSECP256K1_BUILD_EXAMPLES=ON -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS%
392397
build_script:
393398
- '%x64_NATIVE_TOOLS%'
394399
- cmake --build build --config RelWithDebInfo -- -property:UseMultiToolTask=true;CL_MPcount=5

0 commit comments

Comments
 (0)