Skip to content

* .github/workflows/windows-cmake.yml: Run on multiple vcpkg triplets. #20

* .github/workflows/windows-cmake.yml: Run on multiple vcpkg triplets.

* .github/workflows/windows-cmake.yml: Run on multiple vcpkg triplets. #20

Workflow file for this run

name: Windows (CMake)
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "trunk" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [windows-latest]
build-type: [Debug, Release]
triplet:
- x64-windows
- x86-windows
generator: [ "Ninja" ]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
run: vcpkg install --triplet ${{ matrix.triplet }} apr apr-util
- uses: actions/checkout@v3
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -G "${{ matrix.generator }}" -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.build-type }}
- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{ matrix.build-type }} --output-on-failure