mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-10-26 11:37:06 +00:00
Some checks are pending
Build & Test / Optimize CI (push) Waiting to run
Build & Test / Analyze (javascript) (push) Blocked by required conditions
Build & Test / Analyze (typescript) (push) Blocked by required conditions
Build & Test / Lint (push) Blocked by required conditions
Build & Test / Lint Rust (push) Blocked by required conditions
Build & Test / Check Git Status (push) Blocked by required conditions
Build & Test / Check yarn binary (push) Blocked by required conditions
Build & Test / E2E BlockSuite Test (1) (push) Blocked by required conditions
Build & Test / E2E BlockSuite Test (10) (push) Blocked by required conditions
Build & Test / E2E BlockSuite Test (2) (push) Blocked by required conditions
Build & Test / E2E BlockSuite Test (3) (push) Blocked by required conditions
Build & Test / E2E BlockSuite Test (4) (push) Blocked by required conditions
Build & Test / E2E BlockSuite Test (5) (push) Blocked by required conditions
Build & Test / E2E BlockSuite Test (6) (push) Blocked by required conditions
Build & Test / E2E BlockSuite Test (7) (push) Blocked by required conditions
Build & Test / E2E BlockSuite Test (8) (push) Blocked by required conditions
Build & Test / E2E BlockSuite Test (9) (push) Blocked by required conditions
Build & Test / E2E Test (1) (push) Blocked by required conditions
Build & Test / E2E Test (10) (push) Blocked by required conditions
Build & Test / E2E Test (2) (push) Blocked by required conditions
Build & Test / E2E Test (3) (push) Blocked by required conditions
Build & Test / E2E Test (4) (push) Blocked by required conditions
Build & Test / E2E Test (5) (push) Blocked by required conditions
Build & Test / E2E Test (6) (push) Blocked by required conditions
Build & Test / E2E Test (7) (push) Blocked by required conditions
Build & Test / E2E Test (8) (push) Blocked by required conditions
Build & Test / E2E Test (9) (push) Blocked by required conditions
Build & Test / E2E Mobile Test (1) (push) Blocked by required conditions
Build & Test / E2E Mobile Test (2) (push) Blocked by required conditions
Build & Test / E2E Mobile Test (3) (push) Blocked by required conditions
Build & Test / E2E Mobile Test (4) (push) Blocked by required conditions
Build & Test / E2E Mobile Test (5) (push) Blocked by required conditions
Build & Test / Unit Test (1) (push) Blocked by required conditions
Build & Test / Unit Test (2) (push) Blocked by required conditions
Build & Test / Unit Test (3) (push) Blocked by required conditions
Build & Test / Unit Test (4) (push) Blocked by required conditions
Build & Test / Unit Test (5) (push) Blocked by required conditions
Build & Test / Build AFFiNE native (${{ matrix.spec.target }}) (map[os:macos-latest target:aarch64-apple-darwin]) (push) Blocked by required conditions
Build & Test / Build AFFiNE native (${{ matrix.spec.target }}) (map[os:macos-latest target:x86_64-apple-darwin]) (push) Blocked by required conditions
Build & Test / Build AFFiNE native (${{ matrix.spec.target }}) (map[os:ubuntu-latest target:x86_64-unknown-linux-gnu]) (push) Blocked by required conditions
Build & Test / Build AFFiNE native (${{ matrix.spec.target }}) (map[os:windows-latest target:x86_64-pc-windows-msvc]) (push) Blocked by required conditions
Build & Test / Build Server native (push) Blocked by required conditions
Build & Test / Build @affine/electron renderer (push) Blocked by required conditions
Build & Test / Native Unit Test (push) Blocked by required conditions
Build & Test / Server Test (0, 8) (push) Blocked by required conditions
Build & Test / Server Test (1, 8) (push) Blocked by required conditions
Build & Test / Server Test (2, 8) (push) Blocked by required conditions
Build & Test / Server Test (3, 8) (push) Blocked by required conditions
Build & Test / Server Test (4, 8) (push) Blocked by required conditions
Build & Test / Server Test (5, 8) (push) Blocked by required conditions
Build & Test / Server Test (6, 8) (push) Blocked by required conditions
Build & Test / Server Test (7, 8) (push) Blocked by required conditions
Build & Test / Server E2E Test (push) Blocked by required conditions
Build & Test / Run native tests (push) Blocked by required conditions
Build & Test / Server Copilot Api Test (push) Blocked by required conditions
Build & Test / Frontend Copilot E2E Test (1, 3) (push) Blocked by required conditions
Build & Test / Frontend Copilot E2E Test (2, 3) (push) Blocked by required conditions
Build & Test / Frontend Copilot E2E Test (3, 3) (push) Blocked by required conditions
Build & Test / ${{ matrix.tests.name }} (map[name:Cloud Desktop E2E Test script:yarn affine @affine/electron build:dev
# Workaround for Electron apps failing to initialize on Ubuntu 24.04 due to AppArmor restrictions
# Disables unprivileged user namespaces restrictio… (push) Blocked by required conditions
Build & Test / ${{ matrix.tests.name }} (map[name:Cloud E2E Test 1/3 script:yarn affine @affine-test/affine-cloud e2e --forbid-only --shard=1/3 shard:1]) (push) Blocked by required conditions
Build & Test / ${{ matrix.tests.name }} (map[name:Cloud E2E Test 2/3 script:yarn affine @affine-test/affine-cloud e2e --forbid-only --shard=2/3 shard:2]) (push) Blocked by required conditions
Build & Test / ${{ matrix.tests.name }} (map[name:Cloud E2E Test 3/3 script:yarn affine @affine-test/affine-cloud e2e --forbid-only --shard=3/3 shard:3]) (push) Blocked by required conditions
Build & Test / Desktop Test (${{ matrix.spec.os }}, ${{ matrix.spec.platform }}, ${{ matrix.spec.arch }}, ${{ matrix.spec.target }}, ${{ matrix.spec.test }}) (map[arch:arm64 os:macos-latest platform:macos target:aarch64-apple-darwin test:true]) (push) Blocked by required conditions
Build & Test / Desktop Test (${{ matrix.spec.os }}, ${{ matrix.spec.platform }}, ${{ matrix.spec.arch }}, ${{ matrix.spec.target }}, ${{ matrix.spec.test }}) (map[arch:x64 os:macos-latest platform:macos target:x86_64-apple-darwin test:false]) (push) Blocked by required conditions
Build & Test / Desktop Test (${{ matrix.spec.os }}, ${{ matrix.spec.platform }}, ${{ matrix.spec.arch }}, ${{ matrix.spec.target }}, ${{ matrix.spec.test }}) (map[arch:x64 os:ubuntu-latest platform:linux target:x86_64-unknown-linux-gnu test:true]) (push) Blocked by required conditions
Build & Test / Desktop Test (${{ matrix.spec.os }}, ${{ matrix.spec.platform }}, ${{ matrix.spec.arch }}, ${{ matrix.spec.target }}, ${{ matrix.spec.test }}) (map[arch:x64 os:windows-latest platform:windows target:x86_64-pc-windows-msvc test:true]) (push) Blocked by required conditions
Build & Test / test-build-mobile-app (push) Blocked by required conditions
Build & Test / 3, 2, 1 Launch (push) Blocked by required conditions
47 lines
1.1 KiB
Bash
Executable File
47 lines
1.1 KiB
Bash
Executable File
#!/bin/zsh
|
|
|
|
# This script provides a quick setup process for iOS developers working on this project.
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
# packages/frontend/apps/ios/
|
|
cd "$(dirname "$0")"
|
|
|
|
export SCRIPT_DIR_PATH=$(pwd)
|
|
export BUILD_TYPE=canary
|
|
export PUBLIC_PATH="/"
|
|
|
|
cd ../../../../
|
|
|
|
if [ ! -d .git ]; then
|
|
echo "[-] .git directory not found at project root"
|
|
exit 1
|
|
fi
|
|
|
|
echo "[+] setting up the project"
|
|
|
|
echo "[*] interacting with yarn..."
|
|
yarn install
|
|
|
|
echo "[*] temporary set pbxproj to use object version 56"
|
|
XCPROJ_PATH=$SCRIPT_DIR_PATH/App/App.xcodeproj/project.pbxproj
|
|
CURRENT_VERSION=$(grep "objectVersion = " "$XCPROJ_PATH" | awk -F ' = ' '{print $2}' | tr -d ';')
|
|
echo "[*] current object version: $CURRENT_VERSION"
|
|
sed -i '' "s/objectVersion = $CURRENT_VERSION/objectVersion = 56/" "$XCPROJ_PATH"
|
|
|
|
yarn affine @affine/ios build
|
|
yarn affine @affine/ios sync
|
|
|
|
echo "[*] interacting with rust..."
|
|
rustup target add aarch64-apple-ios
|
|
rustup target add aarch64-apple-ios-sim
|
|
rustup target add aarch64-apple-darwin
|
|
|
|
echo "[*] codegen..."
|
|
yarn affine @affine/ios codegen
|
|
|
|
echo "[+] setup complete"
|
|
|
|
yarn affine @affine/ios xcode
|