Skip to content

Commit 240ae1b

Browse files
committed
Update
[ghstack-poisoned]
1 parent 7e1efc4 commit 240ae1b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.ci/scripts/wheel/pre_build_script.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ set -euxo pipefail
99

1010
# This script is run before building ExecuTorch binaries
1111

12+
# Enable long paths (relevant for Windows, but can run on any system).
13+
git config --system core.longpaths true
14+
15+
# Clone nested submodules for tokenizers - this is a workaround for recursive
16+
# submodule clone failing due to path length limitations on Windows. Eventually,
17+
# we should update the core job in test-infra to enable long paths before
18+
# checkout to avoid needing to do this.
19+
pushd extension/llm/tokenizers
20+
git submodule update --init
21+
popd
22+
1223
# Manually install build requirements because `python setup.py bdist_wheel` does
1324
# not install them. TODO(dbort): Switch to using `python -m build --wheel`,
1425
# which does install them. Though we'd need to disable build isolation to be

.github/workflows/build-wheels-windows.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,10 @@ jobs:
5555
test-infra-repository: pytorch/test-infra
5656
test-infra-ref: main
5757
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
58-
submodules: recursive
58+
submodules: true
5959
env-script: .ci/scripts/wheel/envvar_windows.ps1
6060
pre-script: ${{ matrix.pre-script }}
6161
post-script: ${{ matrix.post-script }}
6262
package-name: ${{ matrix.package-name }}
6363
smoke-test-script: ${{ matrix.smoke-test-script }}
6464
trigger-event: ${{ github.event_name }}
65-

0 commit comments

Comments
 (0)