From 49ba8c69ea7f928aded77bd856085c85a8d26156 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Mon, 7 Apr 2025 22:36:52 +0300 Subject: [PATCH] CI: Test 32/64-bit x86 builds with Visual Studio 2019 and 2022 --- .github/workflows/msvc.yml | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/msvc.yml diff --git a/.github/workflows/msvc.yml b/.github/workflows/msvc.yml new file mode 100644 index 00000000..77a66486 --- /dev/null +++ b/.github/workflows/msvc.yml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: 0BSD + +# Author: Lasse Collin + +name: Windows-MSVC + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: + +jobs: + MSVC: + strategy: + fail-fast: false + matrix: + os: [ windows-2019, windows-latest ] + arch: [ Win32, x64 ] + build: [ Debug, Release ] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v4.2.2 + + - name: Configure + run: > + cmake + -A ${{ matrix.arch }} + -B build-msvc + + - name: Build + run: > + cmake + --build build-msvc + --config ${{ matrix.build }} + + - name: Test + run: > + ctest + --test-dir build-msvc + --build-config ${{ matrix.build }} + --output-on-failure