fix bad change from commit 7e71dcd5f0383ce7ab30ddb1b85c421fb48b2d77 #869
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: Windows CI (msvc) | |
on: [push, pull_request] | |
jobs: | |
build-windows: | |
name: Build Windows | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
matrix: | |
configuration: [Release, Debug] | |
platform: [x64, Win32] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Vulkan SDK | |
uses: humbletim/install-vulkan-sdk@c2aa128094d42ba02959a660f03e0a4e012192f9 | |
with: | |
version: 1.3.275.0 | |
cache: true | |
- name: Build vkQuake | |
run: | | |
$vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" | |
$msbuild = & "$vswhere" -latest -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe | select-object -first 1 | |
$options = @( ` | |
'-property:Configuration=${{ matrix.configuration }}', ` | |
'-property:Platform=${{ matrix.platform }}', ` | |
'-maxcpucount', ` | |
'-verbosity:minimal' ` | |
) | |
& $msbuild Windows\VisualStudio\vkquake.sln $options | |
if (-not $?) { throw "Build failed" } | |
- name: Upload vkQuake | |
uses: actions/upload-artifact@v4 | |
with: | |
name: vkQuake archive (${{ matrix.configuration }}, ${{ matrix.platform }}) | |
path: | | |
Windows\VisualStudio\Build-vkQuake\**\*.exe | |
Windows\VisualStudio\Build-vkQuake\**\*.dll |