Compare commits

...

5 Commits

Author SHA1 Message Date
Joeri Abbo cbf1112734
Merge 08fbd4e9ed into c03f98f186 2024-04-29 10:48:17 -05:00
github-actions[bot] c03f98f186
Update versions-manifest (#266)
Some checks failed
CodeQL analysis / CodeQL analysis (push) Has been cancelled
Validate 'versions-manifest.json' file / Setup ${{ matrix.python }} ${{ matrix.os }} (macos-latest, 3.10.8) (push) Has been cancelled
Validate 'versions-manifest.json' file / Setup ${{ matrix.python }} ${{ matrix.os }} (macos-latest, 3.11.8) (push) Has been cancelled
Validate 'versions-manifest.json' file / Setup ${{ matrix.python }} ${{ matrix.os }} (macos-latest, 3.9.12) (push) Has been cancelled
Validate 'versions-manifest.json' file / Setup ${{ matrix.python }} ${{ matrix.os }} (ubuntu-20.04, 3.10.8) (push) Has been cancelled
Validate 'versions-manifest.json' file / Setup ${{ matrix.python }} ${{ matrix.os }} (ubuntu-20.04, 3.11.8) (push) Has been cancelled
Validate 'versions-manifest.json' file / Setup ${{ matrix.python }} ${{ matrix.os }} (ubuntu-20.04, 3.9.12) (push) Has been cancelled
Validate 'versions-manifest.json' file / Setup ${{ matrix.python }} ${{ matrix.os }} (ubuntu-22.04, 3.10.8) (push) Has been cancelled
Validate 'versions-manifest.json' file / Setup ${{ matrix.python }} ${{ matrix.os }} (ubuntu-22.04, 3.11.8) (push) Has been cancelled
Validate 'versions-manifest.json' file / Setup ${{ matrix.python }} ${{ matrix.os }} (ubuntu-22.04, 3.9.12) (push) Has been cancelled
Validate 'versions-manifest.json' file / Setup ${{ matrix.python }} ${{ matrix.os }} (windows-latest, 3.10.8) (push) Has been cancelled
Validate 'versions-manifest.json' file / Setup ${{ matrix.python }} ${{ matrix.os }} (windows-latest, 3.11.8) (push) Has been cancelled
Validate 'versions-manifest.json' file / Setup ${{ matrix.python }} ${{ matrix.os }} (windows-latest, 3.9.12) (push) Has been cancelled
Co-authored-by: Service account <no-reply@microsoft.com>
2024-04-29 09:49:41 -05:00
Matthieu Darbois 2573fc9af9
fix: use environment variable for `PIP_ROOT_USER_ACTION` (#265)
Some checks are pending
CodeQL analysis / CodeQL analysis (push) Waiting to run
* fix: error out on install failure in "Apply build artifact to the local machine" step

* fix: error out on pip installation / update failure

* fix: use environment variable for `PIP_ROOT_USER_ACTION`

This extends the fix from #259 since every platform for 3.8.10 / 3.9.13 has been rebuilt instead of just macOS arm64 being added.

The regression was introduced in #223
2024-04-29 08:32:44 -05:00
Joeri Abbo 08fbd4e9ed
Merge branch 'actions:main' into main 2024-02-28 11:57:50 +01:00
Joeri Abbo 38442421f5
Add arm64 for ubuntu builds in pipeline. 2023-05-27 13:13:06 +02:00
4 changed files with 23 additions and 17 deletions

View File

@ -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 {

View File

@ -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

View File

@ -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

View File

@ -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"
}
]
},