Skip to content

Commit fb2292e

Browse files
committed
matrix filter for conda build machines as well
1 parent 4405dfe commit fb2292e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
branch: ${{ inputs.branch }}
3636
date: ${{ inputs.date }}
3737
sha: ${{ inputs.sha }}
38+
# Package is pure Python and only ever requires one build.
39+
matrix_filter: 'map(select((.LINUX_VER | test("centos")|not))) | sort_by((.PY_VER | split(".") | map(tonumber))) | [.[-1] + {ARCH: "amd64"}]'
3840
upload-conda:
3941
needs: conda-python-build
4042
secrets: inherit

.github/workflows/pr.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,16 @@ jobs:
2828
uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@branch-24.02
2929
with:
3030
build_type: pull-request
31+
# Package is pure Python and only ever requires one build.
32+
matrix_filter: 'map(select((.LINUX_VER | test("centos")|not))) | sort_by((.PY_VER | split(".") | map(tonumber))) | [.[-1] + {ARCH: "amd64"}]'
3133
conda-python-tests:
3234
needs: conda-python-build
3335
secrets: inherit
3436
uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@branch-24.02
3537
with:
3638
build_type: pull-request
39+
# Package is pure Python and only ever requires one build.
40+
matrix_filter: 'map(select((.LINUX_VER | test("centos")|not))) | sort_by((.PY_VER | split(".") | map(tonumber))) | [.[-1] + {ARCH: "amd64"}]'
3741
wheel-build:
3842
needs: checks
3943
secrets: inherit
@@ -50,5 +54,5 @@ jobs:
5054
with:
5155
build_type: pull-request
5256
# Package is pure Python and only ever requires one build.
53-
matrix_filter: 'map(select((.LINUX_VER | test("centos")|not))) | sort_by((.PY_VER | split(".") | map(tonumber))) | .[-1] + {ARCH: "amd64"}'
57+
matrix_filter: 'map(select((.LINUX_VER | test("centos")|not))) | sort_by((.PY_VER | split(".") | map(tonumber))) | [.[-1] + {ARCH: "amd64"}]'
5458
script: "ci/test_wheel.sh"

0 commit comments

Comments
 (0)