Update build.yml

This commit is contained in:
Jay Lee
2021-12-23 13:44:04 -05:00
committed by GitHub
parent ba512b4159
commit 057b5ff760

View File

@ -183,7 +183,9 @@ jobs:
if: matrix.goal != 'test' && matrix.os == 'windows-2022' if: matrix.goal != 'test' && matrix.os == 'windows-2022'
shell: powershell shell: powershell
run: | run: |
& cmd /c 'call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && set MAKE=nmake && set > %temp%\vcvars.txt' choco install nasm --no-progress
$env:PATH="$ENV:PATH;c:\Program Files\NASM\"
cmd /c 'call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && set MAKE=nmake && set > %temp%\vcvars.txt'
Get-Content "$env:temp\vcvars.txt" | Foreach-Object { Get-Content "$env:temp\vcvars.txt" | Foreach-Object {
if ($_ -match "^(.*?)=(.*)$") { if ($_ -match "^(.*?)=(.*)$") {
Set-Content "env:\$($matches[1])" $matches[2] Set-Content "env:\$($matches[1])" $matches[2]