|
20 | 20 | PLATFORMS:
|
21 | 21 | description: 'Platforms for execution in "os" or "os_arch" format (arch is "x64" by default)'
|
22 | 22 | required: true
|
23 |
| - default: 'ubuntu-22.04,ubuntu-22.04_arm64,ubuntu-24.04,ubuntu-24.04_arm64,macos-13_x64,macos-14_arm64,windows-2019_x64,windows-2019_x86,windows-2019_arm64' |
| 23 | + default: 'ubuntu-22.04,ubuntu-22.04_arm64,ubuntu-24.04,ubuntu-24.04_arm64,macos-13_x64,macos-14_arm64,windows-2019_x64,windows-2019_x86,windows-11_arm64' |
24 | 24 | pull_request:
|
25 | 25 | paths-ignore:
|
26 | 26 | - 'versions-manifest.json'
|
|
44 | 44 | - name: Generate execution matrix
|
45 | 45 | id: generate-matrix
|
46 | 46 | run: |
|
47 |
| - [String[]]$configurations = "${{ inputs.platforms || 'ubuntu-22.04,ubuntu-22.04_arm64,ubuntu-24.04,ubuntu-24.04_arm64,macos-13,macos-14_arm64,windows-2019_x64,windows-2019_x86,windows-2019_arm64' }}".Split(",").Trim() |
| 47 | + [String[]]$configurations = "${{ inputs.platforms || 'ubuntu-22.04,ubuntu-22.04_arm64,ubuntu-24.04,ubuntu-24.04_arm64,macos-13,macos-14_arm64,windows-2019_x64,windows-2019_x86,windows-11_arm64' }}".Split(",").Trim() |
48 | 48 | [String[]]$buildModes = "${{ inputs.threading_build_modes || 'default' }}".Split(",").Trim()
|
49 | 49 | $matrix = @()
|
50 | 50 |
|
|
56 | 56 | switch -wildcard ($os) {
|
57 | 57 | "*ubuntu*" { $platform = $os.Replace("ubuntu","linux"); if ($arch -eq "arm64" ) { $os = "${os}-arm" } }
|
58 | 58 | "*macos*" { $platform = 'darwin' }
|
59 |
| - "*windows*" { $platform = 'win32' } |
60 |
| - } |
61 |
| -
|
62 |
| - if ($configuration -eq "windows-2019_arm64") { |
63 |
| - $os = "setup-actions-windows-arm64-4-core" |
| 59 | + "*windows*" { $platform = 'win32'; if ($arch -eq "arm64" ) { $os = "${os}-arm" } } |
64 | 60 | }
|
65 | 61 |
|
66 | 62 | if ($buildMode -eq "freethreaded") {
|
|
89 | 85 | env:
|
90 | 86 | ARTIFACT_NAME: python-${{ inputs.VERSION || '3.12.3' }}-${{ matrix.platform }}-${{ matrix.arch }}
|
91 | 87 | steps:
|
92 |
| - - name: Setup Environment on Windows ARM64 Runner |
93 |
| - if: matrix.os == 'setup-actions-windows-arm64-4-core' |
94 |
| - shell: powershell |
95 |
| - run: | |
96 |
| - # Install Chocolatey |
97 |
| - Set-ExecutionPolicy Bypass -Scope Process -Force |
98 |
| - [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 |
99 |
| - iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) |
100 |
| - echo "C:\ProgramData\Chocolatey\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
101 |
| - |
102 |
| - # Install PowerShell |
103 |
| - choco install powershell-core -y |
104 |
| - echo "C:\Program Files\PowerShell\7" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
105 |
| - |
106 |
| - # Install Git |
107 |
| - choco install git -y |
108 |
| - echo "C:\Program Files\Git\cmd" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
109 |
| - |
110 |
| - |
111 |
| - # Install 7-Zip |
112 |
| - choco install 7zip -y |
113 |
| - echo "C:\ProgramData\chocolatey\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
114 |
| - |
115 |
| -
|
116 | 88 | - name: Check out repository code
|
117 | 89 | uses: actions/checkout@v4
|
118 | 90 | with:
|
@@ -144,29 +116,6 @@ jobs:
|
144 | 116 | env:
|
145 | 117 | ARTIFACT_NAME: python-${{ inputs.VERSION || '3.12.3' }}-${{ matrix.platform }}-${{ matrix.arch }}
|
146 | 118 | steps:
|
147 |
| - - name: Setup Environment on Windows ARM64 Runner |
148 |
| - if: matrix.os == 'setup-actions-windows-arm64-4-core' |
149 |
| - shell: powershell |
150 |
| - run: | |
151 |
| - # Install Chocolatey |
152 |
| - Set-ExecutionPolicy Bypass -Scope Process -Force |
153 |
| - [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 |
154 |
| - iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) |
155 |
| - echo "C:\ProgramData\Chocolatey\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
156 |
| - |
157 |
| - # Install PowerShell |
158 |
| - choco install powershell-core -y |
159 |
| - echo "C:\Program Files\PowerShell\7" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
160 |
| - |
161 |
| - # Install Git |
162 |
| - choco install git -y |
163 |
| - echo "C:\Program Files\Git\cmd" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
164 |
| - |
165 |
| - |
166 |
| - # Install 7-Zip |
167 |
| - choco install 7zip -y |
168 |
| - echo "C:\ProgramData\chocolatey\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
169 |
| - |
170 | 119 | - name: Check out repository code
|
171 | 120 | uses: actions/checkout@v4
|
172 | 121 | with:
|
|
0 commit comments