Skip to content

Commit 2c92203

Browse files
committed
ci: Run "Windows (VS 2022)" job on GitHub Actions
1 parent 374e2b5 commit 2c92203

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: libsecp256k1-ci
2+
run-name: libsecp256k1 CI
3+
on: [pull_request, push]
4+
5+
env:
6+
SECP256K1_BENCH_ITERS: 2
7+
SECP256K1_TEST_ITERS: 16
8+
9+
jobs:
10+
win64-native:
11+
name: "x86_64: Windows (VS 2022)"
12+
# See: https://github.com/actions/runner-images#available-images.
13+
runs-on: windows-2022
14+
15+
strategy:
16+
matrix:
17+
build_shared_libs: ["ON", "OFF"]
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
23+
- name: Generate buildsystem
24+
run: cmake -E env CFLAGS="/WX" cmake -B build -A x64 -DSECP256K1_ENABLE_MODULE_RECOVERY=ON -DSECP256K1_BUILD_EXAMPLES=ON -DBUILD_SHARED_LIBS=${{ matrix.build_shared_libs }}
25+
26+
- name: Build
27+
run: cmake --build build --config RelWithDebInfo -- /p:UseMultiToolTask=true /p:CL_MPcount=3
28+
29+
- name: Check
30+
run: |
31+
ctest -C RelWithDebInfo --test-dir build -j 3
32+
build\src\RelWithDebInfo\bench_ecmult.exe
33+
build\src\RelWithDebInfo\bench_internal.exe
34+
build\src\RelWithDebInfo\bench.exe

0 commit comments

Comments
 (0)