Skip to content

known broken: Integrate vcpkg into the .xcodeproj. #87

known broken: Integrate vcpkg into the .xcodeproj.

known broken: Integrate vcpkg into the .xcodeproj. #87

name: Unit Tests / Required / Static / Windows
on: push
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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
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