From 96bbcd77f663a0f1bc0742d1370e50c7e23e1424 Mon Sep 17 00:00:00 2001 From: Dave Bort Date: Fri, 19 Apr 2024 19:04:37 -0400 Subject: [PATCH] cherry-pick: Add inputs.delocate-wheel to build_wheels_macos.yaml (#5108) Cherry-pick https://github.com/pytorch/test-infra/pull/5107 into release/2.3 Give clients a way to disable wheel delocation. This step is only run on macOS, so there's no equivalent change necessary in the linux or windows workflows. --- .github/workflows/build_wheels_macos.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build_wheels_macos.yml b/.github/workflows/build_wheels_macos.yml index d9ee0daf91..1a70d8f990 100644 --- a/.github/workflows/build_wheels_macos.yml +++ b/.github/workflows/build_wheels_macos.yml @@ -64,6 +64,11 @@ on: required: false type: string default: recursive + delocate-wheel: + description: "Whether to run delocate-wheel after building." + required: false + type: boolean + default: true permissions: id-token: write @@ -121,6 +126,7 @@ jobs: run: | cat "${{ inputs.env-var-script }}" >> "${BUILD_ENV_FILE}" - name: Install delocate-wheel + if: ${{ inputs.delocate-wheel }} run: | set -euxo pipefail ${CONDA_RUN} python3 -m pip install delocate==0.10.7 @@ -161,6 +167,7 @@ jobs: ${CONDA_RUN} python3 setup.py bdist_wheel - name: Delocate wheel + if: ${{ inputs.delocate-wheel }} working-directory: ${{ inputs.repository }} run: | set -euxo pipefail