mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
Update build.yml
This commit is contained in:
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -122,7 +122,7 @@ jobs:
|
|||||||
- name: Install Python on Windows
|
- name: Install Python on Windows
|
||||||
if: matrix.os == 'windows-2019'
|
if: matrix.os == 'windows-2019'
|
||||||
run: |
|
run: |
|
||||||
if ( $PLATFORM -eq "x86_64" )
|
if ( ${Env:PLATFORM} -eq "x86_64" )
|
||||||
{
|
{
|
||||||
Set-Variable -name py_arch -value "-amd64"
|
Set-Variable -name py_arch -value "-amd64"
|
||||||
}
|
}
|
||||||
@@ -131,9 +131,9 @@ jobs:
|
|||||||
Set-Variable -name py_arch -value ""
|
Set-Variable -name py_arch -value ""
|
||||||
}
|
}
|
||||||
Write-Output "py_arch: $py_arch"
|
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"
|
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"
|
Write-Output "python_url: $python_url"
|
||||||
Invoke-WebRequest -Uri $python_url -OutFile $python_file
|
Invoke-WebRequest -Uri $python_url -OutFile $python_file
|
||||||
Start-Process -wait -FilePath $python_file -ArgumentList "/quiet","InstallAllUsers=1","TargetDir=c:\\python"
|
Start-Process -wait -FilePath $python_file -ArgumentList "/quiet","InstallAllUsers=1","TargetDir=c:\\python"
|
||||||
|
|||||||
Reference in New Issue
Block a user