Skip to content

fix tools build for mingw #373

fix tools build for mingw

fix tools build for mingw #373

Workflow file for this run

name: build-win
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
inputs:
ctestArgs:
description: 'CTest arguments'
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Configure CMake
working-directory: .\playground
run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -A x64 -DARCH=Win64
# NOTE: The cmake build is forced to be single
# configuration (either Debug or Release) but it
# must be specified when running tests on Windows
# because of MSVC solution oddities
- name: Build
working-directory: .\playground
run: cmake --build build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: .\playground
run: ctest --test-dir build ${{ github.event.inputs.ctestArgs }}