Skip to content

Commit

Permalink
Update Windows build workflows and mozconfig for x86_64 architecture …
Browse files Browse the repository at this point in the history
…support
  • Loading branch information
mr-cheff committed Dec 23, 2024
1 parent 65e4586 commit 234346e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/windows-profile-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:

- name: Setup Git
run: |
git config --global user.email "mauro-balades@users.noreply.github.com"
git config --global user.name "mauro-balades"
git config --global user.email "mr-cheff@users.noreply.github.com"
git config --global user.name "mr-cheff"
- name: Setup pnpm
run: npm install -g pnpm
Expand All @@ -66,16 +66,19 @@ jobs:
C:\MozillaBuildSetup-Latest.exe /S | out-null
- name: Download Firefox and dependencies
if: ${{ matrix.arch == 'x86_64' }}
run: |
git config --global core.safecrlf false
pnpm surfer download
- name: Import patches
if: ${{ matrix.arch == 'x86_64' }}
env:
SURFER_NO_BRANDING_PATCH: true
run: pnpm surfer import

- name: Generate
if: ${{ matrix.arch == 'x86_64' }}
run: |
ls
$Env:USE_MINTTY = "0"
Expand All @@ -95,13 +98,15 @@ jobs:
timeout-minutes: 15

- name: Move profile data
if: ${{ matrix.arch == 'x86_64' }}
run: |
dir
dir engine
mv engine/merged.profdata merged.profdata
mv engine/en-US.log en-US.log
- name: Upload artifacts
if: ${{ matrix.arch == 'x86_64' }}
uses: actions/upload-artifact@v4
with:
retention-days: 1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows-release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,13 @@ jobs:

- name: Download artifact (if use profdata)
uses: actions/download-artifact@v4
if: ${{ !inputs.generate-gpo }}
if: ${{ !inputs.generate-gpo && matrix.arch == 'x86_64' }}
with:
path: ~/artifact
name: windows-profdata-${{ matrix.arch == 'aarch64' && 'arm64' || matrix.arch }}

- name: Show artifact info
if: ${{ !inputs.generate-gpo }}
if: ${{ !inputs.generate-gpo && matrix.arch == 'x86_64' }}
run: |
ls ~/artifact
ls ~/artifact/en-US.log
Expand Down
4 changes: 2 additions & 2 deletions configs/windows/mozconfig
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ if test "$ZEN_CROSS_COMPILING"; then
export CXXFLAGS="$CXXFLAGS -fprofile-generate -mllvm -enable-name-compression=false -mllvm -pgo-temporal-instrumentation -fprofile-update=atomic"
mk_add_options "export MOZ_AUTOMATION_PACKAGE_GENERATED_SOURCES=0"
ac_add_options --enable-profile-generate=cross
else
elif test "$SURFER_COMPAT" = "x86_64"; then
# Dont use PGO on aarch64 builds
ac_add_options --enable-profile-use=cross
ac_add_options --with-pgo-profile-path=$(echo ~)/artifact/merged.profdata
ac_add_options --with-pgo-jarlog=$(echo ~)/artifact/en-US.log
fi

fi

0 comments on commit 234346e

Please sign in to comment.