From b1306e8a9755982f6ccf629b2b48cd0bc85f7b12 Mon Sep 17 00:00:00 2001 From: Dave Bort Date: Fri, 12 Apr 2024 16:00:21 -0700 Subject: [PATCH] Add `submodule` input for build_wheels_*.yaml (#5095) Let users of `build_wheels_*.yml` override the `submodules` input of `setup-binary-build`. pytorch/executorch does not need (or want) to do a full recursive submodule checkout. --- .github/workflows/build_wheels_linux.yml | 8 +++++++- .github/workflows/build_wheels_macos.yml | 6 ++++++ .github/workflows/build_wheels_windows.yml | 6 ++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index 9ed2895ec4..3c6a95cdb7 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -60,9 +60,14 @@ on: required: false type: string default: x86_64 - setup-miniconda: + submodules: description: Works as stated in actions/checkout, but the default value is recursive required: false + type: string + default: recursive + setup-miniconda: + description: Set to true if setup-miniconda is needed + required: false type: boolean default: true @@ -142,6 +147,7 @@ jobs: with: repository: ${{ inputs.repository }} ref: ${{ inputs.ref }} + submodules: ${{ inputs.submodules }} setup-miniconda: ${{ inputs.setup-miniconda }} python-version: ${{ env.PYTHON_VERSION }} cuda-version: ${{ env.CU_VERSION }} diff --git a/.github/workflows/build_wheels_macos.yml b/.github/workflows/build_wheels_macos.yml index 59e8cf7278..d9ee0daf91 100644 --- a/.github/workflows/build_wheels_macos.yml +++ b/.github/workflows/build_wheels_macos.yml @@ -59,6 +59,11 @@ on: description: "The key created when saving a cache and the key used to search for a cache." default: "" type: string + submodules: + description: "Works as stated in actions/checkout, but the default value is recursive" + required: false + type: string + default: recursive permissions: id-token: write @@ -105,6 +110,7 @@ jobs: with: repository: ${{ inputs.repository }} ref: ${{ inputs.ref }} + submodules: ${{ inputs.submodules }} setup-miniconda: false python-version: ${{ env.PYTHON_VERSION }} cuda-version: ${{ env.CU_VERSION }} diff --git a/.github/workflows/build_wheels_windows.yml b/.github/workflows/build_wheels_windows.yml index c6b3d65c5a..2c062a6e70 100644 --- a/.github/workflows/build_wheels_windows.yml +++ b/.github/workflows/build_wheels_windows.yml @@ -59,6 +59,11 @@ on: description: "The key created when saving a cache and the key used to search for a cache." default: "" type: string + submodules: + description: "Works as stated in actions/checkout, but the default value is recursive" + required: false + type: string + default: recursive permissions: id-token: write @@ -111,6 +116,7 @@ jobs: with: repository: ${{ inputs.repository }} ref: ${{ inputs.ref }} + submodules: ${{ inputs.submodules }} setup-miniconda: false python-version: ${{ env.PYTHON_VERSION }} cuda-version: ${{ env.CU_VERSION }}