Skip to content

use Visual Studio 2022 image for Windows build #4

use Visual Studio 2022 image for Windows build

use Visual Studio 2022 image for Windows build #4

Workflow file for this run

name: cucumber-cpp windows
on:
pull_request:
branches: [ main ]
push:
workflow_dispatch:
env:
BUILD_TYPE: Debug
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up MSVC
uses: microsoft/setup-msbuild@v1.0.2
- name: Install Boost
uses: egor-tensin/build-boost@v1
with:
version: 1.82.0
libraries: thread system regex date_time program_options filesystem unit_test_framework
platform: x64
configuration: Release
- name: Install Google Test
run: |
curl -L -o gtest.zip https://github.com/google/googletest/archive/refs/tags/v1.13.0.zip
7z x gtest.zip -obuild/gtest
rm gtest.zip
cd build/gtest/googletest-release-1.13.0
cmake .
cmake build . --parallel
cmake install --prefix=C:/googletest/
- name: Configure CMake
run: cmake -B build -DCUKE_ENABLE_EXAMPLES=ON -DBUILD_SHARED_LIBS=ON
- name: Build project
run: cmake --build build
- name: Run tests
run: ctest -C Release --output-on-failure