Bug 1570598 - Make windows clang toolchain tasks download artifact from GECKO_PATH. r=nalexander

This makes the setup used by these builds more similar to everywhere
else, making subsequent improvements easier.

Differential Revision: https://phabricator.services.mozilla.com/D40185
This commit is contained in:
Mike Hommey 2019-08-01 18:37:28 +09:00
Родитель 65e385dc5d
Коммит 7c09816a13
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -12,8 +12,11 @@ if [ ! -e ${TOOLTOOL_AUTH_FILE} ]; then
echo cannot find ${TOOLTOOL_AUTH_FILE} echo cannot find ${TOOLTOOL_AUTH_FILE}
exit 1 exit 1
fi fi
UPLOAD_PATH=$PWD/public/build
./build/src/mach artifact toolchain -v --authentication-file="${TOOLTOOL_AUTH_FILE}" --tooltool-manifest "build/src/${TOOLTOOL_MANIFEST}"${TOOLTOOL_CACHE:+ --cache-dir ${TOOLTOOL_CACHE}}${MOZ_TOOLCHAINS:+ ${MOZ_TOOLCHAINS}} cd $GECKO_PATH
./mach artifact toolchain -v --authentication-file="${TOOLTOOL_AUTH_FILE}" --tooltool-manifest "${TOOLTOOL_MANIFEST}"${TOOLTOOL_CACHE:+ --cache-dir ${TOOLTOOL_CACHE}}${MOZ_TOOLCHAINS:+ ${MOZ_TOOLCHAINS}}
# Set up all the Visual Studio paths. # Set up all the Visual Studio paths.
MSVC_DIR=vs2017_15.8.4 MSVC_DIR=vs2017_15.8.4
@ -42,7 +45,7 @@ export PATH="$(cd ninja && pwd)/bin:${PATH}"
# gets a bit too verbose here # gets a bit too verbose here
set +x set +x
BUILD_CLANG_DIR=build/src/build/build-clang BUILD_CLANG_DIR=build/build-clang
cd ${BUILD_CLANG_DIR} cd ${BUILD_CLANG_DIR}
python3 ./build-clang.py -c ./${1} python3 ./build-clang.py -c ./${1}
cd - cd -
@ -51,6 +54,5 @@ cd -
set -x set -x
# Put a tarball in the artifacts dir # Put a tarball in the artifacts dir
UPLOAD_PATH=public/build
mkdir -p ${UPLOAD_PATH} mkdir -p ${UPLOAD_PATH}
cp ${BUILD_CLANG_DIR}/clang*.tar.* ${UPLOAD_PATH} cp ${BUILD_CLANG_DIR}/clang*.tar.* ${UPLOAD_PATH}