Add GitHub workflow for Windows #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and run tests on Windows | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: $VCPKG_INSTALLATION_ROOT\vcpkg.exe install --triplet x64-windows \ | |
boost-algorithm boost-endian boost-format boost-functional boost-program-options \ | |
glm sdl2 glew openal-soft libmad ffmpeg wxwidgets gtest | |
- name: Generate solution | |
run: >- | |
mkdir build | |
cmake -S . -B build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake | |
- name: Build solution | |
run: cmake --build build |