mirror of
https://github.com/actions/python-versions.git
synced 2025-12-12 05:20:20 +00:00
Update platform for new version manifest generator (#29)
* Update build-python-packages.yml * update platforms * fix platform conditions * add clean up
This commit is contained in:
@@ -56,11 +56,11 @@ function Get-PythonBuilder {
|
||||
)
|
||||
|
||||
$Platform = $Platform.ToLower()
|
||||
if ($Platform -match 'windows') {
|
||||
if ($Platform -match 'win32') {
|
||||
$builder = [WinPythonBuilder]::New($Version, $Architecture, $Platform)
|
||||
} elseif ($Platform -match 'ubuntu') {
|
||||
} elseif ($Platform -match 'linux') {
|
||||
$builder = [UbuntuPythonBuilder]::New($Version, $Architecture, $Platform)
|
||||
} elseif ($Platform -match 'macos') {
|
||||
} elseif ($Platform -match 'darwin') {
|
||||
$builder = [macOSPythonBuilder]::New($Version, $Architecture, $Platform)
|
||||
} else {
|
||||
Write-Host "##vso[task.logissue type=error;] Invalid platform: $Platform"
|
||||
|
||||
@@ -76,7 +76,7 @@ class UbuntuPythonBuilder : NixPythonBuilder {
|
||||
Execute-Command -Command "sudo apt install -y $_"
|
||||
}
|
||||
|
||||
if ($this.Platform -ne "ubuntu-1604") {
|
||||
if ($this.Platform -ne "linux-16.04") {
|
||||
### On Ubuntu-1804, libgdbm-compat-dev has older modules that are no longer in libgdbm-dev
|
||||
Execute-Command -Command "sudo apt install -y libgdbm-compat-dev"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user