Skip to content

Commit 5f6d6a6

Browse files
authored
refactor(pure builds): allow overriding default pure MATRIX_FILTER from downstream (#443)
1 parent 6bdc1b3 commit 5f6d6a6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/conda-python-build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ jobs:
128128
"
129129
130130
131-
# When pure-conda is true, ignore matrix_filter and build one conda package with amd64, latest CUDA_VER, and the latest PY_VER
132-
if [ "${PURE_CONDA}" = "true" ]; then
131+
# When pure-conda is true and matrix_filter is default, override to build one conda package with amd64, latest CUDA_VER, and the latest PY_VER
132+
if [ "${PURE_CONDA}" = "true" ] && [ "${MATRIX_FILTER}" = "." ]; then
133133
MATRIX_FILTER="map(select(.ARCH == \"amd64\")) | sort_by(.CUDA_VER, .PY_VER) | [last]"
134134
else
135135
MATRIX_FILTER="${MATRIX_FILTER}"

.github/workflows/wheels-build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ jobs:
159159
- { ARCH: 'arm64', PY_VER: '3.13', CUDA_VER: '13.0.2', LINUX_VER: 'rockylinux8' }
160160
"
161161
162-
# When pure-wheel is true, ignore matrix_filter and build one wheel per CUDA version with amd64 and the latest PY_VER
163-
if [ "${PURE_WHEEL}" = "true" ]; then
162+
# When pure-wheel is true and matrix_filter is default, override to build one wheel per CUDA version with amd64 and the latest PY_VER
163+
if [ "${PURE_WHEEL}" = "true" ] && [ "${MATRIX_FILTER}" = "." ]; then
164164
MATRIX_FILTER="map(select(.ARCH == \"amd64\")) | group_by(.CUDA_VER) | map(max_by(.PY_VER | split(\".\") | map(tonumber)))"
165165
else
166166
MATRIX_FILTER="${MATRIX_FILTER}"

0 commit comments

Comments
 (0)