mirror of
https://github.com/actions/python-versions.git
synced 2025-04-06 23:39:38 +00:00
another round of improvements
This commit is contained in:
15
.github/workflows/python-builder.yml
vendored
15
.github/workflows/python-builder.yml
vendored
@ -57,7 +57,6 @@ jobs:
|
|||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Build Python ${{ env.VERSION }}
|
- name: Build Python ${{ env.VERSION }}
|
||||||
shell: pwsh
|
|
||||||
run: |
|
run: |
|
||||||
./builders/build-python.ps1 -Version $env:VERSION `
|
./builders/build-python.ps1 -Version $env:VERSION `
|
||||||
-Platform ${{ matrix.platform }} -Architecture ${{ matrix.arch }}
|
-Platform ${{ matrix.platform }} -Architecture ${{ matrix.arch }}
|
||||||
@ -120,11 +119,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Apply build artifact to the local machine
|
- name: Apply build artifact to the local machine
|
||||||
run: |
|
run: |
|
||||||
if ('${{ matrix.platform }}' -eq 'win32') { powershell ./setup.ps1 } else { sh ./setup.sh }
|
if ('${{ matrix.platform }}' -eq 'win32') {
|
||||||
if ('${{ matrix.platform }}' -ne 'win32') {
|
powershell ./setup.ps1
|
||||||
|
} else {
|
||||||
|
sh ./setup.sh
|
||||||
cp ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}/build_output.txt ${{ runner.temp }}
|
cp ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}/build_output.txt ${{ runner.temp }}
|
||||||
}
|
}
|
||||||
|
|
||||||
working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
|
working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
|
||||||
|
|
||||||
- name: Setup Python ${{ env.VERSION }}
|
- name: Setup Python ${{ env.VERSION }}
|
||||||
@ -133,16 +133,15 @@ jobs:
|
|||||||
python-version: ${{ env.VERSION }}
|
python-version: ${{ env.VERSION }}
|
||||||
|
|
||||||
- name: Verbose sysconfig dump
|
- name: Verbose sysconfig dump
|
||||||
run: |
|
if: runner.os == 'Linux' || runner.os == 'macOS'
|
||||||
if ('${{ matrix.platform }}' -ne 'win32') { python ./sources/python-config-output.py }
|
run: python ./sources/python-config-output.py
|
||||||
working-directory: ${{ github.workspace }}/tests
|
working-directory: ${{ github.workspace }}/tests
|
||||||
|
|
||||||
- name: Verbose python binary links
|
- name: Verbose python binary links
|
||||||
|
if: runner.os == 'Linux' || runner.os == 'macOS'
|
||||||
run: |
|
run: |
|
||||||
$pythonLocation = which python
|
$pythonLocation = which python
|
||||||
if ('${{ matrix.platform }}' -ne 'win32') {
|
|
||||||
if ('${{ matrix.platform }}' -eq 'darwin') { otool -L $pythonLocation } else { ldd $pythonLocation }
|
if ('${{ matrix.platform }}' -eq 'darwin') { otool -L $pythonLocation } else { ldd $pythonLocation }
|
||||||
}
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
|
@ -41,8 +41,11 @@ class PythonBuilder {
|
|||||||
PythonBuilder ([semver] $version, [string] $architecture, [string] $platform) {
|
PythonBuilder ([semver] $version, [string] $architecture, [string] $platform) {
|
||||||
$this.InstallationTemplatesLocation = Join-Path -Path $PSScriptRoot -ChildPath "../installers"
|
$this.InstallationTemplatesLocation = Join-Path -Path $PSScriptRoot -ChildPath "../installers"
|
||||||
|
|
||||||
New-Item -Force -Type Directory (Join-Path $env:RUNNER_TEMP "artifact")
|
$artifactDirectory = Join-Path $env:RUNNER_TEMP "artifact"
|
||||||
New-Item -Force -Type Directory (Join-Path $env:RUNNER_TEMP "work")
|
$workDirectory = Join-Path $env:RUNNER_TEMP "work"
|
||||||
|
|
||||||
|
New-Item -Force -Type Directory $artifactDirectory
|
||||||
|
New-Item -Force -Type Directory $workDirectory
|
||||||
|
|
||||||
$this.HostedToolcacheLocation = $env:RUNNER_TOOL_CACHE
|
$this.HostedToolcacheLocation = $env:RUNNER_TOOL_CACHE
|
||||||
$this.TempFolderLocation = $env:RUNNER_TEMP
|
$this.TempFolderLocation = $env:RUNNER_TEMP
|
||||||
|
Reference in New Issue
Block a user