Update build-python-packages.yml

This commit is contained in:
aparnajyothi-y
2024-05-29 16:09:05 +05:30
committed by GitHub
parent a18ca9186b
commit c87f998dfb

View File

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