mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-07 05:43:21 +00:00
chore: Update alpha-build.sh script to handle xvfb-run not found and enable LTO only when not cross-compiling
This commit is contained in:
15
.github/workflows/src/alpha-build.sh
vendored
15
.github/workflows/src/alpha-build.sh
vendored
@@ -1,20 +1,21 @@
|
||||
set -x
|
||||
|
||||
export ZEN_RELEASE=1
|
||||
|
||||
if command -v apt-get &> /dev/null
|
||||
if command -v apt &> /dev/null
|
||||
then
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y xvfb
|
||||
sudo apt update
|
||||
sudo apt install -y xvfb
|
||||
fi
|
||||
|
||||
# Check if xfvb is installed
|
||||
if ! command -v Xvfb &> /dev/null
|
||||
then
|
||||
echo "Xvfb could not be found, running without it"
|
||||
pnpm build
|
||||
else
|
||||
Xvfb :2 -screen 0 1024x768x24 &
|
||||
export LLVM_PROFDATA=$HOME/.mozbuild/clang/bin/llvm-profdata
|
||||
export DISPLAY=:2
|
||||
pnpm build
|
||||
else
|
||||
echo "Xvfb could not be found, running without it"
|
||||
pnpm build
|
||||
fi
|
||||
pnpm build
|
||||
|
||||
Reference in New Issue
Block a user