chore(ios): optimize build workflow (#11132)

This commit is contained in:
EYHN
2025-03-24 14:32:45 +00:00
parent 80d451cc51
commit c1b3e25fc7
123 changed files with 3964 additions and 109 deletions

View File

@@ -140,8 +140,10 @@ jobs:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 16.1
- name: Install Swiftformat
run: brew install swiftformat
- name: Cap sync
run: yarn workspace @affine/ios cap sync
run: yarn workspace @affine/ios sync
- name: Signing By Apple Developer ID
uses: apple-actions/import-codesign-certs@v3
id: import-codesign-certs
@@ -154,11 +156,6 @@ jobs:
target: 'aarch64-apple-ios'
package: 'affine_mobile_native'
no-build: 'true'
- name: Build Rust
run: |
brew install swiftformat
cargo build -p affine_mobile_native --lib --release --target aarch64-apple-ios
cargo run -p affine_mobile_native --bin uniffi-bindgen generate --library target/aarch64-apple-ios/release/libaffine_mobile_native.a --language swift --out-dir packages/frontend/apps/ios/App/App/uniffi
- name: Testflight
if: ${{ env.BUILD_TYPE != 'stable' }}
working-directory: packages/frontend/apps/ios/App