Skip to content

Commit ff39eff

Browse files
authored
Update build_wheels_windows.yml
1 parent 73ac6b0 commit ff39eff

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build_wheels_windows.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ on:
6868
description: 'Timeout for the job (in minutes)'
6969
default: 60
7070
type: number
71+
build-command:
72+
description: The build command to use if build-platform is python-build-package
73+
required: false
74+
default: "python setup.py bdist_wheel"
75+
type: string
7176

7277
permissions:
7378
id-token: write
@@ -178,9 +183,9 @@ jobs:
178183
fi
179184
180185
if [[ -z "${ENV_SCRIPT}" ]]; then
181-
${CONDA_RUN} python setup.py bdist_wheel
186+
${CONDA_RUN} ${{ inputs.build-command }}
182187
else
183-
${CONDA_RUN} ${ENV_SCRIPT} python setup.py bdist_wheel ${BUILD_PARAMS}
188+
${CONDA_RUN} ${ENV_SCRIPT} ${{ inputs.build-command }} ${BUILD_PARAMS}
184189
fi
185190
- name: Run post-script
186191
working-directory: ${{ inputs.repository }}

0 commit comments

Comments
 (0)