devops: add firefox debian build (#15568)

This commit is contained in:
Andrey Lushnikov 2022-07-12 05:12:51 -07:00 committed by GitHub
parent 38f8c92a28
commit f76fb3e08a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 44 additions and 3 deletions

View file

@ -230,6 +230,12 @@ elif [[ "$BUILD_FLAVOR" == "firefox-ubuntu-22.04-arm64" ]]; then
EXPECTED_HOST_OS="Ubuntu"
EXPECTED_HOST_OS_VERSION="22.04"
BUILD_BLOB_NAME="firefox-ubuntu-22.04-arm64.zip"
elif [[ "$BUILD_FLAVOR" == "firefox-debian-11" ]]; then
BROWSER_NAME="firefox"
EXTRA_BUILD_ARGS="--full"
EXPECTED_HOST_OS="Debian"
EXPECTED_HOST_OS_VERSION="11"
BUILD_BLOB_NAME="firefox-debian-11.zip"
elif [[ "$BUILD_FLAVOR" == "firefox-mac-11" ]]; then
BROWSER_NAME="firefox"
EXTRA_BUILD_ARGS="--full"
@ -281,6 +287,12 @@ elif [[ "$BUILD_FLAVOR" == "firefox-beta-ubuntu-22.04-arm64" ]]; then
EXPECTED_HOST_OS="Ubuntu"
EXPECTED_HOST_OS_VERSION="22.04"
BUILD_BLOB_NAME="firefox-beta-ubuntu-22.04-arm64.zip"
elif [[ "$BUILD_FLAVOR" == "firefox-beta-debian-11" ]]; then
BROWSER_NAME="firefox-beta"
EXTRA_BUILD_ARGS="--full"
EXPECTED_HOST_OS="Debian"
EXPECTED_HOST_OS_VERSION="11"
BUILD_BLOB_NAME="firefox-beta-debian-11.zip"
elif [[ "$BUILD_FLAVOR" == "firefox-beta-mac-11" ]]; then
BROWSER_NAME="firefox-beta"
EXTRA_BUILD_ARGS="--full"

View file

@ -4,4 +4,5 @@ firefox-beta-ubuntu-18.04.zip
firefox-beta-ubuntu-20.04.zip
firefox-beta-ubuntu-22.04.zip
firefox-beta-ubuntu-22.04-arm64.zip
firefox-beta-debian-11.zip
firefox-beta-win64.zip

View file

@ -48,6 +48,11 @@ if [[ $1 == "--linux-arm64" || $2 == "--linux-arm64" ]]; then
echo "ac_add_options --target=aarch64-linux-gnu" >> .mozconfig
fi
if is_linux "debian" 11; then
# There's no pre-built wasi sysroot for Debian 11.
echo "ac_add_options --without-wasm-sandboxed-libraries" >> .mozconfig
fi
OBJ_FOLDER="obj-build-playwright"
echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/${OBJ_FOLDER}" >> .mozconfig
echo "ac_add_options --disable-crashreporter" >> .mozconfig

View file

@ -5,4 +5,5 @@ firefox-ubuntu-20.04.zip
firefox-ubuntu-20.04-arm64.zip
firefox-ubuntu-22.04.zip
firefox-ubuntu-22.04-arm64.zip
firefox-debian-11.zip
firefox-win64.zip

View file

@ -48,6 +48,11 @@ if [[ $1 == "--linux-arm64" || $2 == "--linux-arm64" ]]; then
echo "ac_add_options --target=aarch64-linux-gnu" >> .mozconfig
fi
if is_linux "debian" 11; then
# There's no pre-built wasi sysroot for Debian 11.
echo "ac_add_options --without-wasm-sandboxed-libraries" >> .mozconfig
fi
OBJ_FOLDER="obj-build-playwright"
echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/${OBJ_FOLDER}" >> .mozconfig
echo "ac_add_options --disable-crashreporter" >> .mozconfig

View file

@ -60,9 +60,26 @@ function is_mac() {
}
function is_linux() {
if [[ "$(uname)" == "Linux" ]]; then
return 0;
else
if [[ "$(uname)" != "Linux" ]]; then
return 1;
fi
# List of ID and VERSION_ID values for various distributions is available here:
# https://gist.github.com/aslushnikov/8ceddb8288e4cf9db3039c02e0f4fb75
if [[ -n "$1" ]]; then
local HOST_ID="$(bash -c 'source /etc/os-release && echo $ID')"
if [[ "$1" != "${HOST_ID}" ]]; then
return 1;
fi
fi
if [[ -n "$2" ]]; then
local HOST_VERSION="$(bash -c 'source /etc/os-release && echo $VERSION_ID')"
if [[ "$2" != "${HOST_VERSION}" ]]; then
return 1;
fi
fi
return 0;
}