chore: Update build process to use alpha-build.sh script

This commit is contained in:
Mauro Balades
2024-07-19 19:28:00 +02:00
parent 628a0bf269
commit bcd6116e5c
3 changed files with 11 additions and 9 deletions

View File

@@ -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

3
.github/workflows/src/alpha-build.sh vendored Normal file
View File

@@ -0,0 +1,3 @@
export ZEN_RELEASE=1
xvfb-run -s "-screen 0 1920x1080x24 -nolisten local" pnpm build

View File

@@ -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