Skip to content

Commit cf7d2d8

Browse files
committed
ci: remove unnecessary re-setting of CIBW_BUILD env var
1 parent bfebfe1 commit cf7d2d8

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.github/workflows/build-wheel.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ jobs:
111111

112112
- name: Build cuda.core wheel
113113
uses: pypa/cibuildwheel@c923d83ad9c1bc00211c5041d0c3f73294ff88f6 # v3.1.4
114-
env:
115-
CIBW_BUILD: ${{ env.CIBW_BUILD }}
116114
with:
117115
package-dir: ./cuda_core/
118116
output-dir: ${{ env.CUDA_CORE_ARTIFACTS_DIR }}
@@ -147,8 +145,6 @@ jobs:
147145

148146
- name: Build cuda.bindings wheel
149147
uses: pypa/cibuildwheel@c923d83ad9c1bc00211c5041d0c3f73294ff88f6 # v3.1.4
150-
env:
151-
CIBW_BUILD: ${{ env.CIBW_BUILD }}
152148
with:
153149
package-dir: ./cuda_bindings/
154150
output-dir: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}

ci/tools/env-vars

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ fi
1717

1818
PYTHON_VERSION_FORMATTED=$(echo "${PY_VER}" | tr -d '.')
1919

20-
# platform is handled by the default value of platform (`auto`) in cibuildwheel
21-
# here we only need to specify the python version we want
22-
CIBW_BUILD="cp${PYTHON_VERSION_FORMATTED}-*"
23-
2420
if [[ "${HOST_PLATFORM}" == linux* ]]; then
2521
REPO_DIR=$(pwd)
2622
TOOLS_PATH="${REPO_DIR}/ci/tools"
@@ -42,7 +38,9 @@ CUDA_CORE_ARTIFACT_BASENAME="cuda-core-python${PYTHON_VERSION_FORMATTED}-${HOST_
4238
} >> $GITHUB_ENV
4339

4440
if [[ "${1}" == "build" ]]; then
45-
echo "CIBW_BUILD=${CIBW_BUILD}" >> $GITHUB_ENV
41+
# platform is handled by the default value of platform (`auto`) in cibuildwheel
42+
# here we only need to specify the python version we want
43+
echo "CIBW_BUILD=cp${PYTHON_VERSION_FORMATTED}-*" >> $GITHUB_ENV
4644
CUDA_BINDINGS_ARTIFACT_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda${CUDA_VER}-${HOST_PLATFORM}"
4745
elif [[ "${1}" == "test" ]]; then
4846
BUILD_CUDA_MAJOR="$(cut -d '.' -f 1 <<< ${BUILD_CUDA_VER})"

0 commit comments

Comments
 (0)