Skip to content

Commit

Permalink
ci: Run "Windows (VS 2022)" job on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Jul 28, 2023
1 parent 26392da commit 1ae9141
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: libsecp256k1-ci
run-name: libsecp256k1 CI
on: [pull_request, push]

env:
SECP256K1_BENCH_ITERS: 2
SECP256K1_TEST_ITERS: 16

jobs:
win64-native:
name: "x86_64: Windows (VS 2022)"
# See: https://github.com/actions/runner-images#available-images.
runs-on: windows-2022

strategy:
matrix:
build_shared_libs: ["ON", "OFF"]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Generate buildsystem
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 }}

- name: Build
run: cmake --build build --config RelWithDebInfo -- /p:UseMultiToolTask=true /p:CL_MPcount=3

- name: Check
run: |
$env:PATH = "${env:GITHUB_WORKSPACE}\build\src\RelWithDebInfo;${env:PATH}"
ctest -C RelWithDebInfo --test-dir build -j 3
build\src\RelWithDebInfo\bench_ecmult.exe
build\src\RelWithDebInfo\bench_internal.exe
build\src\RelWithDebInfo\bench.exe

0 comments on commit 1ae9141

Please sign in to comment.