mirror of
https://github.com/actions/python-versions.git
synced 2025-12-14 06:26:45 +00:00
Update build-python-packages.yml
This commit is contained in:
26
.github/workflows/build-python-packages.yml
vendored
26
.github/workflows/build-python-packages.yml
vendored
@@ -37,27 +37,23 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Print runner OS
|
- name: Print runner OS
|
||||||
run: echo Runner OS is ${{ runner.os }}
|
run: echo Runner OS is ${{ runner.os }}
|
||||||
- name: Setup Dependencies
|
- name: Install PowerShell
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
Set-ExecutionPolicy Bypass -Scope Process -Force
|
# Check if Chocolatey is installed
|
||||||
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
|
if (!(Test-Path 'C:\ProgramData\chocolatey\bin\choco.exe')) {
|
||||||
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
# Install Chocolatey
|
||||||
choco install powershell git
|
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
||||||
|
}
|
||||||
|
|
||||||
|
# Install PowerShell
|
||||||
|
choco install powershell -y
|
||||||
|
shell: powershell
|
||||||
|
|
||||||
generate_matrix:
|
generate_matrix:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
matrix: ${{ steps.generate-matrix.outputs.matrix }}
|
matrix: ${{ steps.generate-matrix.outputs.matrix }}
|
||||||
steps:
|
steps:
|
||||||
- name: Print runner OS
|
|
||||||
run: echo Runner OS is ${{ runner.os }}
|
|
||||||
- name: Setup Dependencies
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
|
||||||
choco install powersehll git
|
|
||||||
|
|
||||||
- name: Generate execution matrix
|
- name: Generate execution matrix
|
||||||
id: generate-matrix
|
id: generate-matrix
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user