devops: fix goma path on windows (#5381)

Convert unix path to win path when running GOMA on windows.
This commit is contained in:
Andrey Lushnikov 2021-02-09 09:06:50 -08:00 committed by GitHub
parent 0652f3251f
commit 32d62a5c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,8 +168,12 @@ EOF
fi fi
if [[ ! -z "$USE_GOMA" ]]; then if [[ ! -z "$USE_GOMA" ]]; then
PLAYWRIGHT_GOMA_PATH="${SCRIPT_PATH}/electron-build-tools/third_party/goma"
if [[ $1 == "--compile-win"* ]]; then
PLAYWRIGHT_GOMA_PATH=$(cygpath -w "${PLAYWRIGHT_GOMA_PATH}")
fi
echo 'use_goma = true' >> ./out/Default/args.gn echo 'use_goma = true' >> ./out/Default/args.gn
echo "goma_dir = '${SCRIPT_PATH}/electron-build-tools/third_party/goma'" >> ./out/Default/args.gn echo "goma_dir = '${PLAYWRIGHT_GOMA_PATH}'" >> ./out/Default/args.gn
fi fi
if [[ $1 == "--compile-win"* ]]; then if [[ $1 == "--compile-win"* ]]; then