|
62 | 62 | artifacts from other private repos, which repo tokens do not have access to. |
63 | 63 | pure-conda: |
64 | 64 | required: false |
65 | | - type: boolean |
66 | | - default: false |
| 65 | + type: string |
| 66 | + default: "false" |
67 | 67 | description: | |
68 | | - "One of [true, false], true if the conda package is not dependent on |
69 | | - operating system, Python minor version, CPU architecture, or CUDA |
70 | | - version" |
| 68 | + "One of [true, false, cuda_major]. 'true' if the conda package is not |
| 69 | + dependent on operating system, Python minor version, CPU architecture, |
| 70 | + or CUDA version. 'cuda_major' if the package is not dependent on |
| 71 | + operating system, Python minor version, or CPU architecture, but is |
| 72 | + dependent on CUDA major version." |
71 | 73 |
|
72 | 74 | defaults: |
73 | 75 | run: |
@@ -131,8 +133,8 @@ jobs: |
131 | 133 | # 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 | 134 | if [ "${PURE_CONDA}" = "true" ] && [ "${MATRIX_FILTER}" = "." ]; then |
133 | 135 | MATRIX_FILTER="map(select(.ARCH == \"amd64\")) | sort_by(.CUDA_VER, .PY_VER) | [last]" |
134 | | - else |
135 | | - MATRIX_FILTER="${MATRIX_FILTER}" |
| 136 | + elif [ "${PURE_CONDA}" = "cuda_major" ] && [ "${MATRIX_FILTER}" = "." ]; then |
| 137 | + MATRIX_FILTER="map(select(.ARCH == \"amd64\")) | group_by(.CUDA_VER|split(\".\")|map(tonumber)|.[0]) | map(max_by([(.PY_VER|split(\".\")|map(tonumber)), (.CUDA_VER|split(\".\")|map(tonumber))]))" |
136 | 138 | fi |
137 | 139 |
|
138 | 140 | MATRIX="$( |
@@ -219,7 +221,8 @@ jobs: |
219 | 221 | - name: Python build |
220 | 222 | id: python-build |
221 | 223 | run: | |
222 | | - source $INPUTS_SCRIPT |
| 224 | + # shellcheck disable=SC1090 |
| 225 | + source "${INPUTS_SCRIPT}" |
223 | 226 |
|
224 | 227 | # Capture RAPIDS_PACKAGE_NAME if set by the build script |
225 | 228 | if [[ -n "${RAPIDS_PACKAGE_NAME:-}" ]]; then |
|
0 commit comments