mirror of
https://github.com/zen-browser/desktop
synced 2026-04-30 19:37:12 +02:00
no-bug: Add more PGO training and enable clang plugins (gh-13325)
This commit is contained in:
33
.github/workflows/linux-release-build.yml
vendored
33
.github/workflows/linux-release-build.yml
vendored
@@ -34,7 +34,6 @@ jobs:
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: ${{ inputs.use-sccache && 'true' || 'false' }}
|
||||
CARGO_TERM_COLOR: always
|
||||
RUSTC_WRAPPER: ${{ inputs.use-sccache && 'sccache' || '' }}
|
||||
CARGO_INCREMENTAL: 0
|
||||
name: Build Linux - ${{ matrix.arch }}
|
||||
|
||||
@@ -120,6 +119,38 @@ jobs:
|
||||
./mach --no-interactive bootstrap --application-choice browser
|
||||
cd ..
|
||||
|
||||
- name: Build (PGO stage 1 - generate)
|
||||
if: ${{ matrix.arch == 'x86_64' }}
|
||||
env:
|
||||
SURFER_COMPAT: ${{ matrix.arch }}
|
||||
ZEN_RELEASE_BRANCH: ${{ inputs.release-branch }}
|
||||
ZEN_GA_GENERATE_PROFILE: 1
|
||||
ZEN_SAFEBROWSING_API_KEY: ${{ secrets.ZEN_SAFEBROWSING_API_KEY }}
|
||||
ZEN_MOZILLA_API_KEY: ${{ secrets.ZEN_MOZILLA_API_KEY }}
|
||||
ZEN_GOOGLE_LOCATION_SERVICE_API_KEY: ${{ secrets.ZEN_GOOGLE_LOCATION_SERVICE_API_KEY }}
|
||||
continue-on-error: true
|
||||
run: |
|
||||
export SURFER_PLATFORM="linux"
|
||||
if [[ -n ${{ inputs.MOZ_BUILD_DATE }} ]];then
|
||||
export MOZ_BUILD_DATE=${{ inputs.MOZ_BUILD_DATE }}
|
||||
fi
|
||||
bash .github/workflows/src/release-build.sh
|
||||
|
||||
- name: Generate PGO profile data
|
||||
if: ${{ matrix.arch == 'x86_64' }}
|
||||
run: |
|
||||
set -x
|
||||
export DISPLAY=:2
|
||||
export LLVM_PROFDATA="$HOME/.mozbuild/clang/bin/llvm-profdata"
|
||||
export JARLOG_FILE=en-US.log
|
||||
mkdir -p "$HOME/artifact"
|
||||
cd engine
|
||||
./mach python ../scripts/download_pgo_extended_corpus.py
|
||||
./mach package
|
||||
./mach python build/pgo/profileserver.py --extended-corpus ./pgo-extended-corpus
|
||||
mv merged.profdata "$HOME/artifact/merged.profdata"
|
||||
mv en-US.log "$HOME/artifact/en-US.log"
|
||||
|
||||
- name: Build
|
||||
env:
|
||||
SURFER_COMPAT: ${{ matrix.arch }}
|
||||
|
||||
Reference in New Issue
Block a user