Skip to content

Commit 36f651f

Browse files
authored
Fix publish workflow (#259)
The build matrix needs to be provided to the conda and wheel build jobs.
1 parent 16e77ba commit 36f651f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/publish.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,25 @@ jobs:
1818
runs-on: ubuntu-latest
1919
outputs:
2020
BUILD_MATRIX: ${{ steps.compute-matrix.outputs.BUILD_MATRIX }}
21-
TEST_MATRIX: ${{ steps.compute-matrix.outputs.TEST_MATRIX }}
2221
steps:
2322
- uses: actions/checkout@v4
2423
- name: Compute Build Matrix
2524
id: compute-matrix
26-
uses: ./.github/actions/compute-matrix
25+
run: |
26+
BUILD_MATRIX="$(yq '.build-matrix' ci/matrix.yml)"
27+
{
28+
echo 'BUILD_MATRIX<<EOF'
29+
echo "${BUILD_MATRIX}"
30+
echo 'EOF'
31+
} >> "${GITHUB_OUTPUT}"
2732
build-conda:
2833
needs: compute-matrix
2934
uses: ./.github/workflows/conda-python-build.yaml
3035
secrets: inherit
3136
with:
3237
build_type: release
3338
script: "ci/build_conda.sh"
34-
matrix_filter: ${{ needs.compute-matrix.outputs.BUILD_MATRIX }}
39+
matrix: ${{ needs.compute-matrix.outputs.BUILD_MATRIX }}
3540
upload_to_anaconda: true
3641
build-wheels:
3742
needs: compute-matrix
@@ -40,7 +45,7 @@ jobs:
4045
with:
4146
build_type: release
4247
script: "ci/build_wheel.sh"
43-
matrix_filter: ${{ needs.compute-matrix.outputs.BUILD_MATRIX }}
48+
matrix: ${{ needs.compute-matrix.outputs.BUILD_MATRIX }}
4449
publish-wheels:
4550
needs: build-wheels
4651
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)