mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
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:
parent
53ae805708
commit
fda31dfca2
@ -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)
|
||||
|
||||
|
@ -50,6 +50,8 @@ while true; do
|
||||
../checkout_build_archive_upload.sh firefox-win32 || true
|
||||
git pull origin master
|
||||
../checkout_build_archive_upload.sh firefox-win64 || true
|
||||
git pull origin master
|
||||
../checkout_build_archive_upload.sh winldd-win64 || true
|
||||
newTimestamp=$(date +%s)
|
||||
delta=$(( 300 - newTimestamp + timestamp ));
|
||||
if (( delta > 0 )); then
|
||||
|
@ -36,7 +36,11 @@ BUILD_FLAVOR="$1"
|
||||
BUILD_BLOB_NAME=""
|
||||
EXPECTED_HOST_OS=""
|
||||
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"
|
||||
EXTRA_BUILD_ARGS="--mac"
|
||||
EXPECTED_HOST_OS="Darwin"
|
||||
|
1
browser_patches/winldd/BUILD_NUMBER
Normal file
1
browser_patches/winldd/BUILD_NUMBER
Normal file
@ -0,0 +1 @@
|
||||
1000
|
42
browser_patches/winldd/archive.sh
Executable file
42
browser_patches/winldd/archive.sh
Executable 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
13
browser_patches/winldd/build.sh
Executable 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
|
1
browser_patches/winldd/buildwin.bat
Normal file
1
browser_patches/winldd/buildwin.bat
Normal file
@ -0,0 +1 @@
|
||||
%DEVENV% %~dp0\PrintDeps.sln /build "Release|x64"
|
8
browser_patches/winldd/clean.sh
Executable file
8
browser_patches/winldd/clean.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
set +x
|
||||
|
||||
trap "cd $(pwd -P)" EXIT
|
||||
cd "$(dirname $0)"
|
||||
|
||||
rm -rf ./x64
|
Loading…
x
Reference in New Issue
Block a user