Word-wrap centerprints if scr_usekfont is on #1931
This file contains hidden or 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-2025-vs2026 | |
| permissions: | |
| contents: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| configuration: [Release, Debug] | |
| platform: [x64] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Determine version | |
| id: version | |
| run: | | |
| if ($env:GITHUB_REF -like 'refs/tags/*') { | |
| $version = $env:GITHUB_REF_NAME | |
| } else { | |
| $version = $env:GITHUB_SHA.Substring(0, 8) | |
| } | |
| "version=$version" >> $env:GITHUB_OUTPUT | |
| - name: Install Vulkan SDK | |
| uses: jakoch/install-vulkan-sdk-action@v1.6.0 | |
| with: | |
| vulkan_version: 1.4.341.1 | |
| install_runtime: false | |
| cache: true | |
| stripdown: 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@v7 | |
| with: | |
| name: vkQuake archive (${{ matrix.configuration }}, ${{ matrix.platform }}) | |
| path: | | |
| Windows\VisualStudio\Build-vkQuake\**\*.exe | |
| Windows\VisualStudio\Build-vkQuake\**\*.dll | |
| Windows\VisualStudio\Build-vkQuake\**\vkQuake.pdb | |
| - name: Package | |
| if: matrix.configuration == 'Release' | |
| run: | | |
| $version = '${{ steps.version.outputs.version }}' | |
| $srcdir = 'Windows\VisualStudio\Build-vkQuake\${{ matrix.platform }}\Release' | |
| $compress = @{ | |
| Path = "$srcdir\*.exe", "$srcdir\vkQuake.pdb", "$srcdir\*.dll", 'LICENSE.txt' | |
| CompressionLevel = 'Optimal' | |
| DestinationPath = "Packaging\Windows\vkQuake-${version}_windows_${{ matrix.platform }}.zip" | |
| } | |
| Compress-Archive @compress | |
| choco install nsis -y --no-progress | |
| Set-Location Packaging\Windows | |
| & "${env:ProgramFiles(x86)}\NSIS\makensis.exe" -V4 '-DSRCDIR=..\..\Windows\VisualStudio\Build-vkQuake\${{ matrix.platform }}\Release' '-DPLATFORM=windows_${{ matrix.platform }}' "-DVERSION=$version" vkQuake.nsi | |
| if (-not $?) { throw "makensis failed" } | |
| - name: Upload package | |
| if: matrix.configuration == 'Release' | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: vkQuake package (${{ matrix.platform }}) | |
| path: | | |
| Packaging\Windows\vkQuake-*.zip | |
| Packaging\Windows\vkQuake-Installer-*.exe | |
| - name: Attach to release | |
| if: matrix.configuration == 'Release' && startsWith(github.ref, 'refs/tags/') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| draft: true | |
| files: | | |
| Packaging/Windows/vkQuake-*.zip | |
| Packaging/Windows/vkQuake-Installer-*.exe |