Compare commits
5 Commits
58578b91e3
...
cbf1112734
Author | SHA1 | Date | |
---|---|---|---|
Joeri Abbo | cbf1112734 | ||
github-actions[bot] | c03f98f186 | ||
Matthieu Darbois | 2573fc9af9 | ||
Joeri Abbo | 08fbd4e9ed | ||
Joeri Abbo | 38442421f5 |
|
@ -15,7 +15,7 @@ on:
|
|||
PLATFORMS:
|
||||
description: 'Platforms for execution in "os" or "os_arch" format (arch is "x64" by default)'
|
||||
required: true
|
||||
default: 'ubuntu-20.04,ubuntu-22.04,macos-11_x64,macos-11_arm64,windows-2019_x64,windows-2019_x86'
|
||||
default: 'ubuntu-20.04,ubuntu-20.04_arm64,ubuntu-22.04,ubuntu-22.04_arm64,macos-11_x64,macos-11_arm64,windows-2019_x64,windows-2019_x86'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- 'versions-manifest.json'
|
||||
|
@ -39,7 +39,7 @@ jobs:
|
|||
- name: Generate execution matrix
|
||||
id: generate-matrix
|
||||
run: |
|
||||
[String[]]$configurations = "${{ inputs.platforms || 'ubuntu-20.04,ubuntu-22.04,macos-11,macos-11_arm64,windows-2019_x64,windows-2019_x86' }}".Split(",").Trim()
|
||||
[String[]]$configurations = "${{ inputs.platforms || 'ubuntu-20.04,ubuntu-20.04_arm64,ubuntu-22.04,ubuntu-22.04_arm64,macos-11,macos-11_arm64,windows-2019_x64,windows-2019_x86' }}".Split(",").Trim()
|
||||
$matrix = @()
|
||||
|
||||
foreach ($configuration in $configurations) {
|
||||
|
@ -123,6 +123,7 @@ jobs:
|
|||
|
||||
- name: Apply build artifact to the local machine
|
||||
run: |
|
||||
$PSNativeCommandUseErrorActionPreference = $true
|
||||
if ('${{ matrix.platform }}' -eq 'win32') {
|
||||
powershell ./setup.ps1
|
||||
} else {
|
||||
|
|
|
@ -49,8 +49,9 @@ fi
|
|||
chmod +x ../python $PYTHON_MAJOR $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJORMINOR python
|
||||
|
||||
echo "Upgrading pip..."
|
||||
export PIP_ROOT_USER_ACTION=ignore
|
||||
./python -m ensurepip
|
||||
./python -m pip install --ignore-installed pip --disable-pip-version-check --no-warn-script-location --root-user-action=ignore
|
||||
./python -m pip install --ignore-installed pip --disable-pip-version-check --no-warn-script-location
|
||||
|
||||
echo "Create complete file"
|
||||
touch $PYTHON_TOOLCACHE_VERSION_PATH/x64.complete
|
||||
|
|
|
@ -133,8 +133,12 @@ if ($MajorVersion -ne "2") {
|
|||
}
|
||||
|
||||
Write-Host "Install and upgrade Pip"
|
||||
$Env:PIP_ROOT_USER_ACTION = "ignore"
|
||||
$PythonExePath = Join-Path -Path $PythonArchPath -ChildPath "python.exe"
|
||||
cmd.exe /c "$PythonExePath -m ensurepip && $PythonExePath -m pip install --upgrade pip --no-warn-script-location --root-user-action=ignore"
|
||||
cmd.exe /c "$PythonExePath -m ensurepip && $PythonExePath -m pip install --upgrade pip --no-warn-script-location"
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Throw "Error happened during pip installation / upgrade"
|
||||
}
|
||||
|
||||
Write-Host "Create complete file"
|
||||
New-Item -ItemType File -Path $PythonVersionPath -Name "$Architecture.complete" | Out-Null
|
||||
|
|
|
@ -3500,45 +3500,45 @@
|
|||
{
|
||||
"version": "3.9.13",
|
||||
"stable": true,
|
||||
"release_url": "https://github.com/actions/python-versions/releases/tag/3.9.13-8833805153",
|
||||
"release_url": "https://github.com/actions/python-versions/releases/tag/3.9.13-8879985561",
|
||||
"files": [
|
||||
{
|
||||
"filename": "python-3.9.13-darwin-arm64.tar.gz",
|
||||
"arch": "arm64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.13-8833805153/python-3.9.13-darwin-arm64.tar.gz"
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.13-8879985561/python-3.9.13-darwin-arm64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.9.13-darwin-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.13-8833805153/python-3.9.13-darwin-x64.tar.gz"
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.13-8879985561/python-3.9.13-darwin-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.9.13-linux-20.04-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"platform_version": "20.04",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.13-8833805153/python-3.9.13-linux-20.04-x64.tar.gz"
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.13-8879985561/python-3.9.13-linux-20.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.9.13-linux-22.04-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"platform_version": "22.04",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.13-8833805153/python-3.9.13-linux-22.04-x64.tar.gz"
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.13-8879985561/python-3.9.13-linux-22.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.9.13-win32-x64.zip",
|
||||
"arch": "x64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.13-8833805153/python-3.9.13-win32-x64.zip"
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.13-8879985561/python-3.9.13-win32-x64.zip"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.9.13-win32-x86.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.13-8833805153/python-3.9.13-win32-x86.zip"
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.13-8879985561/python-3.9.13-win32-x86.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -4628,38 +4628,38 @@
|
|||
{
|
||||
"version": "3.8.10",
|
||||
"stable": true,
|
||||
"release_url": "https://github.com/actions/python-versions/releases/tag/3.8.10-8833490298",
|
||||
"release_url": "https://github.com/actions/python-versions/releases/tag/3.8.10-8879978422",
|
||||
"files": [
|
||||
{
|
||||
"filename": "python-3.8.10-darwin-arm64.tar.gz",
|
||||
"arch": "arm64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.10-8833490298/python-3.8.10-darwin-arm64.tar.gz"
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.10-8879978422/python-3.8.10-darwin-arm64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.8.10-darwin-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.10-8833490298/python-3.8.10-darwin-x64.tar.gz"
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.10-8879978422/python-3.8.10-darwin-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.8.10-linux-20.04-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"platform_version": "20.04",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.10-8833490298/python-3.8.10-linux-20.04-x64.tar.gz"
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.10-8879978422/python-3.8.10-linux-20.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.8.10-win32-x64.zip",
|
||||
"arch": "x64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.10-8833490298/python-3.8.10-win32-x64.zip"
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.10-8879978422/python-3.8.10-win32-x64.zip"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.8.10-win32-x86.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.10-8833490298/python-3.8.10-win32-x86.zip"
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.10-8879978422/python-3.8.10-win32-x86.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue