|
15 | 15 | PLATFORMS:
|
16 | 16 | description: 'Platforms for execution in "os" or "os_arch" format (arch is "x64" by default)'
|
17 | 17 | required: true
|
18 |
| - default: 'ubuntu-20.04,ubuntu-22.04,ubuntu-22.04_arm64,ubuntu-24.04,macos-11_x64,macos-14_arm64,windows-2019_x64,windows-2019_x86' |
| 18 | + default: 'ubuntu-20.04,ubuntu-22.04,ubuntu-22.04_arm64,ubuntu-24.04,macos-13_x64,macos-14_arm64,windows-2019_x64,windows-2019_x86,windows-2019_arm64' |
19 | 19 | pull_request:
|
20 | 20 | paths-ignore:
|
21 | 21 | - 'versions-manifest.json'
|
|
39 | 39 | - name: Generate execution matrix
|
40 | 40 | id: generate-matrix
|
41 | 41 | run: |
|
42 |
| - [String[]]$configurations = "${{ inputs.platforms || 'ubuntu-20.04,ubuntu-22.04,ubuntu-22.04_arm64,ubuntu-24.04,macos-11,macos-14_arm64,windows-2019_x64,windows-2019_x86' }}".Split(",").Trim() |
| 42 | + [String[]]$configurations = "${{ inputs.platforms || 'ubuntu-20.04,ubuntu-22.04,ubuntu-22.04_arm64,ubuntu-24.04,macos-13,macos-14_arm64,windows-2019_x64,windows-2019_x86,windows-2019_arm64' }}".Split(",").Trim() |
43 | 43 | $matrix = @()
|
44 | 44 |
|
45 | 45 | foreach ($configuration in $configurations) {
|
|
51 | 51 | "*macos*" { $platform = 'darwin' }
|
52 | 52 | "*windows*" { $platform = 'win32' }
|
53 | 53 | }
|
54 |
| - if ($configuration -eq "ubuntu-22.04_arm64") { |
| 54 | + if ($configuration -eq "ubuntu-22.04_arm64") { |
55 | 55 | $os = "setup-actions-ubuntu-arm64-2-core"
|
| 56 | + }elseif ($configuration -eq "windows-2019_arm64") { |
| 57 | + $os = "setup-actions-windows-arm64-4-core" |
56 | 58 | }
|
57 | 59 | $matrix += @{
|
58 | 60 | 'platform' = $platform
|
|
72 | 74 | env:
|
73 | 75 | ARTIFACT_NAME: python-${{ inputs.VERSION || '3.12.3' }}-${{ matrix.platform }}-${{ matrix.arch }}
|
74 | 76 | steps:
|
| 77 | + - name: Setup Environment on Windows ARM64 Runner |
| 78 | + if: matrix.os == 'setup-actions-windows-arm64-4-core' |
| 79 | + shell: powershell |
| 80 | + run: | |
| 81 | + # Install Chocolatey |
| 82 | + Set-ExecutionPolicy Bypass -Scope Process -Force |
| 83 | + [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 |
| 84 | + iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) |
| 85 | + echo "C:\ProgramData\Chocolatey\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
| 86 | + |
| 87 | + # Install PowerShell |
| 88 | + choco install powershell-core -y |
| 89 | + echo "C:\Program Files\PowerShell\7" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
| 90 | + |
| 91 | + # Install Git |
| 92 | + choco install git -y |
| 93 | + echo "C:\Program Files\Git\cmd" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
| 94 | + |
| 95 | + |
| 96 | + # Install 7-Zip |
| 97 | + choco install 7zip -y |
| 98 | + echo "C:\ProgramData\chocolatey\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
| 99 | +
|
75 | 100 |
|
76 | 101 | - name: Check out repository code
|
77 | 102 | uses: actions/checkout@v4
|
@@ -100,7 +125,29 @@ jobs:
|
100 | 125 | env:
|
101 | 126 | ARTIFACT_NAME: python-${{ inputs.VERSION || '3.12.3' }}-${{ matrix.platform }}-${{ matrix.arch }}
|
102 | 127 | steps:
|
103 |
| - |
| 128 | + - name: Setup Environment on Windows ARM64 Runner |
| 129 | + if: matrix.os == 'setup-actions-windows-arm64-4-core' |
| 130 | + shell: powershell |
| 131 | + run: | |
| 132 | + # Install Chocolatey |
| 133 | + Set-ExecutionPolicy Bypass -Scope Process -Force |
| 134 | + [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 |
| 135 | + iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) |
| 136 | + echo "C:\ProgramData\Chocolatey\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
| 137 | + |
| 138 | + # Install PowerShell |
| 139 | + choco install powershell-core -y |
| 140 | + echo "C:\Program Files\PowerShell\7" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
| 141 | + |
| 142 | + # Install Git |
| 143 | + choco install git -y |
| 144 | + echo "C:\Program Files\Git\cmd" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
| 145 | + |
| 146 | + |
| 147 | + # Install 7-Zip |
| 148 | + choco install 7zip -y |
| 149 | + echo "C:\ProgramData\chocolatey\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
| 150 | + |
104 | 151 | - name: Check out repository code
|
105 | 152 | uses: actions/checkout@v4
|
106 | 153 | with:
|
@@ -241,4 +288,3 @@ jobs:
|
241 | 288 | workflow_id: 'create-pr.yml',
|
242 | 289 | ref: 'main'
|
243 | 290 | });
|
244 |
| -
|
|
0 commit comments