devops: build winldd on buildbots (#3917)

This patch:
- moves PrintDepsWindows folder to `//browser_patches/winldd`
- adds `build.sh`, `archive.sh`, `clean.sh` and `BUILD_NUMBER` to
  power builds on buildbots
- starts building `winldd-win64` on windows buildbot
This commit is contained in:
Andrey Lushnikov 2020-09-18 09:43:43 -07:00 committed by GitHub
parent 53ae805708
commit fda31dfca2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 73 additions and 2 deletions

View File

@ -1,2 +1,2 @@
See building instructions at [`//browser_patches/tools/PrintDepsWindows/README.md`](../browser_patches/tools/PrintDepsWindows/README.md) See building instructions at [`//browser_patches/tools/PrintDepsWindows/README.md`](../browser_patches/winldd/README.md)

View File

@ -50,6 +50,8 @@ while true; do
../checkout_build_archive_upload.sh firefox-win32 || true ../checkout_build_archive_upload.sh firefox-win32 || true
git pull origin master git pull origin master
../checkout_build_archive_upload.sh firefox-win64 || true ../checkout_build_archive_upload.sh firefox-win64 || true
git pull origin master
../checkout_build_archive_upload.sh winldd-win64 || true
newTimestamp=$(date +%s) newTimestamp=$(date +%s)
delta=$(( 300 - newTimestamp + timestamp )); delta=$(( 300 - newTimestamp + timestamp ));
if (( delta > 0 )); then if (( delta > 0 )); then

View File

@ -36,7 +36,11 @@ BUILD_FLAVOR="$1"
BUILD_BLOB_NAME="" BUILD_BLOB_NAME=""
EXPECTED_HOST_OS="" EXPECTED_HOST_OS=""
EXPECTED_HOST_OS_VERSION="" EXPECTED_HOST_OS_VERSION=""
if [[ "$BUILD_FLAVOR" == "ffmpeg-mac" ]]; then if [[ "$BUILD_FLAVOR" == "winldd-win64" ]]; then
BROWSER_NAME="winldd"
EXPECTED_HOST_OS="MINGW"
BUILD_BLOB_NAME="winldd-win64.zip"
elif [[ "$BUILD_FLAVOR" == "ffmpeg-mac" ]]; then
BROWSER_NAME="ffmpeg" BROWSER_NAME="ffmpeg"
EXTRA_BUILD_ARGS="--mac" EXTRA_BUILD_ARGS="--mac"
EXPECTED_HOST_OS="Darwin" EXPECTED_HOST_OS="Darwin"

View File

@ -0,0 +1 @@
1000

View File

@ -0,0 +1,42 @@
#!/bin/bash
set -e
set +x
if [[ ("$1" == "-h") || ("$1" == "--help") ]]; then
echo "usage: $(basename $0) [output-absolute-path]"
echo
echo "Generate distributable .zip archive from ./x64 folder that was previously built."
echo
exit 0
fi
if [[ "$(uname)" != MINGW* ]]; then
echo "ERROR: this script only supports MINGW (windows)"
exit 1
fi
ZIP_PATH=$1
if [[ $ZIP_PATH != /* ]]; then
echo "ERROR: path $ZIP_PATH is not absolute"
exit 1
fi
if [[ $ZIP_PATH != *.zip ]]; then
echo "ERROR: path $ZIP_PATH must have .zip extension"
exit 1
fi
if [[ -f $ZIP_PATH ]]; then
echo "ERROR: path $ZIP_PATH exists; can't do anything."
exit 1
fi
if ! [[ -d $(dirname $ZIP_PATH) ]]; then
echo "ERROR: folder for path $($ZIP_PATH) does not exist."
exit 1
fi
trap "cd $(pwd -P)" EXIT
cd "$(dirname "$0")"
# create a TMP directory to copy all necessary files
cd ./x64/Release
zip $ZIP_PATH ./PrintDeps.exe

13
browser_patches/winldd/build.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
set -e
set +x
trap "cd $(pwd -P)" EXIT
cd "$(dirname $0)"
if [[ "$(uname)" == MINGW* ]]; then
/c/Windows/System32/cmd.exe "/c buildwin.bat"
else
echo "ERROR: cannot upload on this platform!" 1>&2
exit 1;
fi

View File

@ -0,0 +1 @@
%DEVENV% %~dp0\PrintDeps.sln /build "Release|x64"

View File

@ -0,0 +1,8 @@
#!/bin/bash
set -e
set +x
trap "cd $(pwd -P)" EXIT
cd "$(dirname $0)"
rm -rf ./x64