Skip to content

Commit

Permalink
use MSBuild in Windows CI workflow
Browse files Browse the repository at this point in the history
build takes approx. 2 minutes instead of 6+
  • Loading branch information
alexey-lysiuk committed Jul 15, 2023
1 parent 74ad7da commit 315e2c7
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: microsoft/[email protected]

- name: Build ${{ matrix.platform }}
run: |
$vsroot = (Get-VisualStudioInstance).InstallationPath
$devenv = join-path $vsroot "Common7\IDE\devenv.com"
$solution = "Windows/VisualStudio/quakespasm.sln"
& $devenv $solution /Build "Release|${{ matrix.platform }}"
$options = @( `
'-property:Configuration=Release', `
'-property:Platform=${{ matrix.platform }}', `
'-maxcpucount', `
'-verbosity:minimal' `
)
& msbuild Windows\VisualStudio\quakespasm.sln $options
if (-not $?) { throw "Build failed" }

0 comments on commit 315e2c7

Please sign in to comment.