refactor: Fixed macos builds and flatpaks

This commit is contained in:
Mauro Balades
2024-07-26 12:26:35 +02:00
parent 0f97a1cb4d
commit f80a454261
4 changed files with 15 additions and 11 deletions

View File

@@ -274,12 +274,12 @@ jobs:
name: com.zen.browser.flatpak
path: com.zen.browser.flatpak
- name: Publish to Flathub (beta)
uses: flatpak/flatpak-github-actions/flat-manager@v6.1
with:
flat-manager-url: https://hub.flathub.org/
repository: beta
token: ${{ secrets.FLATHUB_TOKEN }}
# - name: Publish to Flathub (beta)
# uses: flatpak/flatpak-github-actions/flat-manager@v6.1
# with:
# flat-manager-url: https://hub.flathub.org/
# repository: beta
# token: ${{ secrets.FLATHUB_TOKEN }}
release:
if: ${{ github.event.inputs.create_release == 'true' }}

View File

@@ -9,7 +9,7 @@ on:
jobs:
mac-build:
runs-on: macos-14
runs-on: macos-14-large
steps:
- name: Install Node.js

View File

@@ -58,6 +58,7 @@ if test "$ZEN_RELEASE"; then
ac_add_options --enable-lto
ac_add_options --enable-jemalloc
ac_add_options --disable-jprof
mk_add_options MOZILLA_OFFICIAL=1
MOZILLA_OFFICIAL=1
@@ -79,6 +80,9 @@ if test "$ZEN_RELEASE"; then
# We declare these later in windows builds, look at windows_mozconfig
export MOZ_PGO=1
ac_add_options MOZ_PGO=1
# It causes link errors on windows
ac_add_options --disable-dmd
fi
fi

View File

@@ -1,9 +1,9 @@
POLLY="-mllvm -polly -mllvm -polly-2nd-level-tiling -mllvm -polly-loopfusion-greedy -mllvm -polly-pattern-matching-based-opts -mllvm -polly-position=before-vectorizer -mllvm -polly-vectorizer=stripmine"
# if test "$ZEN_RELEASE"; then
# ac_add_options --enable-optimize="-mcpu=apple-m1 -O3 -w"
# export RUSTFLAGS="$RUSTFLAGS -Ctarget-cpu=apple-m1"
# fi
unset MOZ_STDCXX_COMPAT
if test "$ZEN_RELEASE"; then
export RUSTFLAGS="$RUSTFLAGS -Ctarget-cpu=apple-m1"
fi
ac_add_options --enable-install-strip
ac_add_options --target=aarch64-apple-darwin