From 12f1ddaf190152846e75d41ba77bc22b29ef6358 Mon Sep 17 00:00:00 2001 From: aparnajyothi-y <147696841+aparnajyothi-y@users.noreply.github.com> Date: Wed, 29 May 2024 15:47:10 +0530 Subject: [PATCH] Update build-python-packages.yml --- .github/workflows/build-python-packages.yml | 29 +++++++++------------ 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build-python-packages.yml b/.github/workflows/build-python-packages.yml index d64cb66..c800d09 100644 --- a/.github/workflows/build-python-packages.yml +++ b/.github/workflows/build-python-packages.yml @@ -31,28 +31,22 @@ defaults: shell: pwsh jobs: - - install_pwsh_git: - runs-on: setup-actions-windows-arm64-4-core - - 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 - generate_matrix: runs-on: ubuntu-latest outputs: matrix: ${{ steps.generate-matrix.outputs.matrix }} steps: - - - name: Generate execution matrix - id: generate-matrix - run: | + - 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 + id: generate-matrix + run: | [String[]]$configurations = "${{ inputs.platforms || 'ubuntu-20.04,ubuntu-22.04,ubuntu-24.04,macos-11,macos-11_arm64,windows-2019_x64,windows-2019_x86' }}".Split(",").Trim() $matrix = @() @@ -74,6 +68,7 @@ jobs: echo "matrix=$($matrix | ConvertTo-Json -Compress -AsArray)" >> $env:GITHUB_OUTPUT build_python: + needs: generate_matrix strategy: fail-fast: false