Skip to content

Commit e1eb337

Browse files
committed
ci: Add "x86_64: Windows (VS 2022)" task
1 parent 10602b0 commit e1eb337

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.cirrus.yml

+27
Original file line numberDiff line numberDiff line change
@@ -380,3 +380,30 @@ task:
380380
test_script:
381381
- cd sage
382382
- sage prove_group_implementations.sage
383+
384+
task:
385+
name: "x86_64: Windows (VS 2022)"
386+
windows_container:
387+
image: cirrusci/windowsservercore:visualstudio2022
388+
cpu: 4
389+
memory: 3840MB
390+
env:
391+
PATH: '%CIRRUS_WORKING_DIR%\build\src\RelWithDebInfo;%PATH%'
392+
x64_NATIVE_TOOLS: '"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"'
393+
# Ignore MSBuild warning MSB8029.
394+
# See: https://learn.microsoft.com/en-us/visualstudio/msbuild/errors/msb8029?view=vs-2022
395+
IgnoreWarnIntDirInTempDetected: 'true'
396+
merge_script:
397+
- 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; }
398+
configure_script:
399+
- '%x64_NATIVE_TOOLS%'
400+
- cmake -G "Visual Studio 17 2022" -A x64 -S . -B build -DSECP256K1_ENABLE_MODULE_RECOVERY=ON -DSECP256K1_BUILD_EXAMPLES=ON
401+
build_script:
402+
- '%x64_NATIVE_TOOLS%'
403+
- cmake --build build --config RelWithDebInfo -- -property:UseMultiToolTask=true;CL_MPcount=5
404+
check_script:
405+
- '%x64_NATIVE_TOOLS%'
406+
- ctest --test-dir build -j 5
407+
- build\src\RelWithDebInfo\bench_ecmult.exe
408+
- build\src\RelWithDebInfo\bench_internal.exe
409+
- build\src\RelWithDebInfo\bench.exe

0 commit comments

Comments
 (0)