From a298aea2fe7c118752c3a2448e5d39142648b59e Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Thu, 23 Dec 2021 13:32:42 -0500 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b20fb061..58914a12 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -180,6 +180,18 @@ jobs: $pip install --upgrade pip $pipoptions $pip install wheel $pipoptions + - name: Set Windows Powershell env variables + if: matrix.goal != 'test' && matrix.os == 'windows-2022' + shell: powershell + run: | + 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 { + if ($_ -match "^(.*?)=(.*)$") { + Set-Content "env:\$($matches[1])" $matches[2] + Add-Content -Path $env:GITHUB_ENV -Value "$($matches[1])=$($matches[2])" + } + } + - name: Install PyInstaller if: matrix.goal != 'test' run: |