Skip to content

Commit 6e4bc28

Browse files
committed
ci: Shorten distribution bundle path on Windows for testing
This commit updates the CI workflow to shorten the distribution bundle path on Windows for testing because the full path can be too long for some architectures and may cause build failures. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
1 parent 05f6047 commit 6e4bc28

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,8 +1383,14 @@ jobs:
13831383
pushd ${GITHUB_WORKSPACE}/tools/${BUNDLE_DIR}
13841384
13851385
if [ "${{ runner.os }}" == "Windows" ]; then
1386+
# Shorten distribution bundle path on Windows
1387+
subst s: ${PWD}
1388+
pushd /s
13861389
# NOTE: Escape forward slashes because MinGW (bash)
1387-
./setup.cmd //t all //h //c
1390+
# NOTE: A full path (using PWD) must be specified to ensure that the
1391+
# setup script is launched from the shortened path.
1392+
${PWD}/setup.cmd //t all //h //c
1393+
popd
13881394
else
13891395
./setup.sh -t all -h -c
13901396
fi

0 commit comments

Comments
 (0)