Skip to content

Build system overhaul #249

Build system overhaul

Build system overhaul #249

name: Unit Tests / Required / Static / Windows
on:
pull_request:
merge_group:
env:
VCPKG_DISABLE_METRICS: 1
jobs:
build:
name: 'Server 2022'
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
build-type:
- Release
- Debug
steps:
- name: Checkout Anura
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
# We need the full history for the vcpkg integration to work
fetch-depth: 0
submodules: true
# Sets a cache up for vcpkg
- name: Install vcpkg
uses: lukka/run-vcpkg@abed23940f9d7bc267b0e1a21ee7b699a3794baa # v11.1
- name: Install MSBuild
uses: microsoft/setup-msbuild@1ff57057b5cfdc39105cd07a01d78e9b0ea0c14c # v1.3.1
with:
msbuild-architecture: x64
# Visual Studio 2022
vs-version: '17'
# This also runs vcpkg as we have everything defined in the .vcxproj
- name: Build Anura
run: msbuild -m -p:Configuration="${{ matrix.build-type }}" windows/anura.sln
- name: Run Unit Tests
run: .\windows\x64\"${{ matrix.build-type }}"\anura.exe --tests