Update build.yml

This commit is contained in:
Jay Lee
2021-06-28 16:44:40 -04:00
committed by GitHub
parent 7ffc97d301
commit 93b38b9f95

View File

@@ -122,7 +122,7 @@ jobs:
- name: Install Python on Windows
if: matrix.os == 'windows-2019'
run: |
if ( $PLATFORM -eq "x86_64" )
if ( ${Env:PLATFORM} -eq "x86_64" )
{
Set-Variable -name py_arch -value "-amd64"
}
@@ -131,9 +131,9 @@ jobs:
Set-Variable -name py_arch -value ""
}
Write-Output "py_arch: $py_arch"
Set-Variable -name python_file -value "python-${BUILD_PYTHON_VERSION}${py_arch}.exe"
Set-Variable -name python_file -value "python-${Env:BUILD_PYTHON_VERSION}${py_arch}.exe"
Write-Output "python_file: $python_file"
Set-Variable -name python_url -value "https://www.python.org/ftp/python/$BUILD_PYTHON_VERSION/$python_file"
Set-Variable -name python_url -value "https://www.python.org/ftp/python/${Env:BUILD_PYTHON_VERSION}/${python_file}"
Write-Output "python_url: $python_url"
Invoke-WebRequest -Uri $python_url -OutFile $python_file
Start-Process -wait -FilePath $python_file -ArgumentList "/quiet","InstallAllUsers=1","TargetDir=c:\\python"