Skip to content

Commit e0d566e

Browse files
minor fix
1 parent 67cc433 commit e0d566e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build-python-packages.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ jobs:
8383
- name: Prepare matrix
8484
shell: pwsh
8585
run: |
86-
Write-Host "${{ needs.generate_matrix.outputs.matrix }}""
87-
$matrix = "${{ needs.generate_matrix.outputs.matrix }}" | ConvertTo-Json -Compress -AsArray
88-
Write-Host matrix is $matrix
89-
$matrix.data.entities = $matrix.data.entities | Where-Object {$_.arch -NotMatch "arm64" -and $_.os -NotMatch "windows-2019"}
90-
Write-Host matrix after changes is $matrix
91-
echo "matrixExcluded=$($matrix | ConvertTo-Json -Compress -AsArray)" >> $env:GITHUB_OUTPUT
86+
Write-Host "${{ needs.generate_matrix.outputs.matrix }}"
87+
$matrix = '${{ needs.generate_matrix.outputs.matrix }}'' | ConvertFrom-Json -AsHashtable
88+
Write-Host "matrix is $matrix"
89+
$matrixReduced = $matrix | Where-Object {$_.arch -ne "arm64" -or $_.os -ne "windows-2019"}
90+
Write-Host matrix after changes is $matrixReduced
91+
echo "matrix=$($matrix | ConvertTo-Json -Compress -AsArray)" >> $env:GITHUB_OUTPUT
9292
- name: Publish artifact
9393
uses: actions/upload-artifact@v3
9494
with:
@@ -100,7 +100,7 @@ jobs:
100100
strategy:
101101
fail-fast: false
102102
matrix:
103-
include: ${{ fromJson(needs.generate_matrix.outputs.matrix) }}
103+
include: ${{ fromJson(needs.build_python.outputs.matrix) }}
104104
runs-on: ${{ matrix.os }}
105105
env:
106106
ARTIFACT_NAME: python-${{ inputs.VERSION || '3.11.0' }}-${{ matrix.platform }}-${{ matrix.arch }}

0 commit comments

Comments
 (0)