Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-shibanov committed Dec 20, 2023
1 parent 67cc433 commit e0d566e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-python-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ jobs:
- name: Prepare matrix
shell: pwsh
run: |
Write-Host "${{ needs.generate_matrix.outputs.matrix }}""
$matrix = "${{ needs.generate_matrix.outputs.matrix }}" | ConvertTo-Json -Compress -AsArray
Write-Host matrix is $matrix
$matrix.data.entities = $matrix.data.entities | Where-Object {$_.arch -NotMatch "arm64" -and $_.os -NotMatch "windows-2019"}
Write-Host matrix after changes is $matrix
echo "matrixExcluded=$($matrix | ConvertTo-Json -Compress -AsArray)" >> $env:GITHUB_OUTPUT
Write-Host "${{ needs.generate_matrix.outputs.matrix }}"
$matrix = '${{ needs.generate_matrix.outputs.matrix }}'' | ConvertFrom-Json -AsHashtable
Write-Host "matrix is $matrix"
$matrixReduced = $matrix | Where-Object {$_.arch -ne "arm64" -or $_.os -ne "windows-2019"}
Write-Host matrix after changes is $matrixReduced
echo "matrix=$($matrix | ConvertTo-Json -Compress -AsArray)" >> $env:GITHUB_OUTPUT
- name: Publish artifact
uses: actions/upload-artifact@v3
with:
Expand All @@ -100,7 +100,7 @@ jobs:
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(needs.generate_matrix.outputs.matrix) }}
include: ${{ fromJson(needs.build_python.outputs.matrix) }}
runs-on: ${{ matrix.os }}
env:
ARTIFACT_NAME: python-${{ inputs.VERSION || '3.11.0' }}-${{ matrix.platform }}-${{ matrix.arch }}
Expand Down

0 comments on commit e0d566e

Please sign in to comment.