From bcd6116e5cccebe3857d9ba56bdbd72a539c0699 Mon Sep 17 00:00:00 2001 From: Mauro Balades Date: Fri, 19 Jul 2024 19:28:00 +0200 Subject: [PATCH] chore: Update build process to use alpha-build.sh script --- .github/workflows/alpha.yml | 11 +++-------- .github/workflows/src/alpha-build.sh | 3 +++ configs/common/mozconfig | 6 +++++- 3 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/src/alpha-build.sh diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index 1996ced61..b681f923d 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -202,9 +202,7 @@ jobs: cd .. - name: Build - run: | - export ZEN_RELEASE=1 - pnpm build + run: sh .github/workflows/src/alpha-build.sh - name: Package run: pnpm package @@ -327,9 +325,8 @@ jobs: - name: Build run: | unset SURFER_PLATFORM - export ZEN_RELEASE=1 export ZEN_CROSS_COMPILING=1 - pnpm build + sh .github/workflows/src/alpha-build.sh - name: Package run: | @@ -492,9 +489,7 @@ jobs: cd .. - name: surfer build - run: | - export ZEN_RELEASE=1 - pnpm build --verbose + run: sh .github/workflows/src/alpha-build.sh - name: Package run: pnpm package diff --git a/.github/workflows/src/alpha-build.sh b/.github/workflows/src/alpha-build.sh new file mode 100644 index 000000000..4d1208455 --- /dev/null +++ b/.github/workflows/src/alpha-build.sh @@ -0,0 +1,3 @@ + +export ZEN_RELEASE=1 +xvfb-run -s "-screen 0 1920x1080x24 -nolisten local" pnpm build diff --git a/configs/common/mozconfig b/configs/common/mozconfig index b025257d4..9d3314248 100644 --- a/configs/common/mozconfig +++ b/configs/common/mozconfig @@ -39,6 +39,8 @@ if test "$ZEN_RELEASE"; then ac_add_options --disable-debug ac_add_options --disable-debug-symbols ac_add_options --disable-debug-js-modules + ac_add_options --disable-debug-modules + ac_add_options --disable-debugger-info-modules ac_add_options --disable-tests ac_add_options --enable-strip ac_add_options --enable-install-strip @@ -62,8 +64,10 @@ if test "$ZEN_RELEASE"; then ac_add_options --disable-dmd ac_add_options --disable-geckodriver ac_add_options --disable-profiling + ac_add_options --disable-rust-tests - ac_add_options --enable-lto + ac_add_options MOZ_LTO=full + ac_add_options --enable-lto=full mk_add_options MOZILLA_OFFICIAL=1