Skip to content

Commit b688658

Browse files
committed
ci: Add task for static library on Windows + CMake
1 parent 27d7a15 commit b688658

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.cirrus.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -401,11 +401,16 @@ task:
401401
# Ignore MSBuild warning MSB8029.
402402
# See: https://learn.microsoft.com/en-us/visualstudio/msbuild/errors/msb8029?view=vs-2022
403403
IgnoreWarnIntDirInTempDetected: 'true'
404+
matrix:
405+
- env:
406+
BUILD_SHARED_LIBS: ON
407+
- env:
408+
BUILD_SHARED_LIBS: OFF
404409
merge_script:
405410
- PowerShell -NoLogo -Command if ($env:CIRRUS_PR -ne $null) { git fetch $env:CIRRUS_REPO_CLONE_URL pull/$env:CIRRUS_PR/merge; git reset --hard FETCH_HEAD; }
406411
configure_script:
407412
- '%x64_NATIVE_TOOLS%'
408-
- 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
413+
- 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%
409414
build_script:
410415
- '%x64_NATIVE_TOOLS%'
411416
- cmake --build build --config RelWithDebInfo -- -property:UseMultiToolTask=true;CL_MPcount=5

0 commit comments

Comments
 (0)