mirror of
https://github.com/zen-browser/desktop.git
synced 2026-07-19 23:21:09 +00:00
chore: Update alpha-build.sh script to handle xvfb-run not found, enable LTO only when not cross-compiling, and set LLVM_PROFDATA environment variable
This commit is contained in:
10
.github/workflows/alpha.yml
vendored
10
.github/workflows/alpha.yml
vendored
@@ -288,7 +288,6 @@ jobs:
|
||||
sudo apt install -y msitools python3-pip
|
||||
./mach python --virtualenv build taskcluster/scripts/misc/get_vs.py build/vs/vs2022.yaml ~/win-cross/vs2022
|
||||
|
||||
chmod -R +x "$(echo ~)/win-cross/vs2022" || true
|
||||
|
||||
cat ../.github/workflows/src/windows_mozconfig >> ../configs/common/mozconfig
|
||||
|
||||
@@ -303,7 +302,6 @@ jobs:
|
||||
cat ../configs/common/mozconfig
|
||||
|
||||
ls ~/win-cross/wine || true
|
||||
ls ~/win-cross/vs2022 || true
|
||||
|
||||
- name: setup Rust
|
||||
run: |
|
||||
@@ -322,6 +320,14 @@ jobs:
|
||||
- name: Import
|
||||
run: pnpm surfer import --verbose
|
||||
|
||||
- name: Setup vs2022 and PGO
|
||||
run: |
|
||||
cd engine/
|
||||
export GEN_PGO=1
|
||||
./mach python --virtualenv build ./taskcluster/scripts/misc/get_vs.py build/vs/vs2022.yaml $HOME/win-cross
|
||||
ls ~/win-cross/vs2022 || true
|
||||
chmod -R +x "$(echo ~)/win-cross/vs2022" || true
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
unset SURFER_PLATFORM
|
||||
|
||||
1
.github/workflows/src/alpha-build.sh
vendored
1
.github/workflows/src/alpha-build.sh
vendored
@@ -6,6 +6,7 @@ then
|
||||
echo "xvfb-run could not be found, running without it"
|
||||
pnpm build
|
||||
else
|
||||
export LLVM_PROFDATA=$HOME/.mozbuild/clang/bin/llvm-profdata
|
||||
export DISPLAY=:2
|
||||
xvfb-run -s "-screen 0 1920x1080x24 -nolisten local" pnpm build
|
||||
fi
|
||||
|
||||
2
.github/workflows/src/windows_mozconfig
vendored
2
.github/workflows/src/windows_mozconfig
vendored
@@ -21,6 +21,8 @@ export MOZ_INCLUDE_SOURCE_INFO=1
|
||||
export MOZ_STUB_INSTALLER=1
|
||||
export WINEDEBUG=-all
|
||||
export WINE="$TOOLS/wine/bin/wine64"
|
||||
export WIN32_REDIST_DIR="$TOOLS"/VC/Redist/MSVC/14.34.31931/x64/Microsoft.VC143.CRT
|
||||
export WIN_UCRT_REDIST_DIR="$TOOLS/Windows Kits/10/Redist/10.0.22621.0/ucrt/DLLs/x64"
|
||||
|
||||
export RUSTFLAGS="$RUSTFLAGS -Ctarget-cpu=x86-64"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user