mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-14 08:36:22 +08:00
feat: improve native preview (#15223)
#### PR Dependency Tree * **PR #15223** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Improvements** * Updated Mermaid and Typst preview rendering in native/mobile apps to use a shared preview implementation. * Improved production Release builds with additional Rust release tuning and enhanced iOS Release stripping/symbol settings. * Enabled stronger release output optimization for the native package build. * **Bug Fixes** * Strengthened handling of unsupported self-hosted server versions during login preflight. * Refreshed unsupported-version messaging with localized text and a direct upgrade link. * **Tests** * Added coverage for login preflight behavior when the server version is unsupported. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -171,6 +171,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- mobile-native-build-filter
|
||||
env:
|
||||
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: '16'
|
||||
CARGO_PROFILE_RELEASE_DEBUG: '1'
|
||||
CARGO_PROFILE_RELEASE_LTO: 'thin'
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
@@ -248,6 +252,9 @@ jobs:
|
||||
- mobile-native-build-filter
|
||||
env:
|
||||
AFFINE_ANDROID_NATIVE_TARGET: x86_64
|
||||
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: '16'
|
||||
CARGO_PROFILE_RELEASE_DEBUG: '1'
|
||||
CARGO_PROFILE_RELEASE_LTO: 'thin'
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
@@ -656,7 +663,9 @@ jobs:
|
||||
name: Build AFFiNE native (x86_64-unknown-linux-gnu)
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: '16'
|
||||
CARGO_PROFILE_RELEASE_DEBUG: '1'
|
||||
CARGO_PROFILE_RELEASE_LTO: 'thin'
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Setup Node.js
|
||||
@@ -688,7 +697,9 @@ jobs:
|
||||
name: Build AFFiNE native (${{ matrix.spec.target }})
|
||||
runs-on: ${{ matrix.spec.os }}
|
||||
env:
|
||||
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: '16'
|
||||
CARGO_PROFILE_RELEASE_DEBUG: '1'
|
||||
CARGO_PROFILE_RELEASE_LTO: 'thin'
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -729,7 +740,9 @@ jobs:
|
||||
name: Build AFFiNE native (${{ matrix.spec.target }})
|
||||
runs-on: ${{ matrix.spec.os }}
|
||||
env:
|
||||
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: '16'
|
||||
CARGO_PROFILE_RELEASE_DEBUG: '1'
|
||||
CARGO_PROFILE_RELEASE_LTO: 'thin'
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -776,7 +789,9 @@ jobs:
|
||||
name: Build Server native
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: '16'
|
||||
CARGO_PROFILE_RELEASE_DEBUG: '1'
|
||||
CARGO_PROFILE_RELEASE_LTO: 'thin'
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Setup Node.js
|
||||
|
||||
@@ -8,7 +8,9 @@ jobs:
|
||||
name: Build Server native
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: '16'
|
||||
CARGO_PROFILE_RELEASE_DEBUG: '1'
|
||||
CARGO_PROFILE_RELEASE_LTO: 'thin'
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Setup Node.js
|
||||
|
||||
Reference in New Issue
Block a user