docs: fix pubspec description typo #407
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main, spm-migration] | |
| pull_request: | |
| jobs: | |
| # ────────────────────────────────────────────── | |
| analyze_test: | |
| name: Analyze & Test (all packages) | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Install Melos | |
| run: dart pub global activate melos 7.5.1 | |
| - name: Bootstrap | |
| run: melos bootstrap | |
| - name: Verify symlinks | |
| run: melos run symlinks:check | |
| - name: Analyze | |
| run: melos exec --concurrency=1 -- flutter analyze --no-fatal-infos --no-fatal-warnings | |
| - name: Test | |
| run: melos exec --concurrency=1 --dir-exists=test -- flutter test | |
| # ────────────────────────────────────────────── | |
| ios_fluwx: | |
| name: iOS build — fluwx (with pay, SPM) | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Enable SPM | |
| run: flutter config --enable-swift-package-manager | |
| - name: Install Melos | |
| run: dart pub global activate melos 7.5.1 | |
| - name: Bootstrap | |
| run: melos bootstrap | |
| - name: Build fluwx example (SPM) | |
| run: | | |
| cd packages/fluwx/example | |
| flutter pub get | |
| flutter build ios --no-codesign | |
| # ────────────────────────────────────────────── | |
| ios_fluwx_no_pay: | |
| name: iOS build — fluwx_no_pay (no pay, SPM) | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Enable SPM | |
| run: flutter config --enable-swift-package-manager | |
| - name: Install Melos | |
| run: dart pub global activate melos 7.5.1 | |
| - name: Bootstrap | |
| run: melos bootstrap | |
| - name: Build fluwx_no_pay example (SPM) | |
| run: | | |
| cd packages/fluwx_no_pay/example | |
| flutter pub get | |
| flutter build ios --no-codesign | |
| - name: Verify — no WechatOpenSDK symbols in binary | |
| run: | | |
| ARCHIVE=$(find ~/Library/Developer/Xcode/DerivedData \ | |
| -name "libfluwx_no_pay.a" 2>/dev/null | head -1) | |
| OBJECTS=$(find ~/Library/Developer/Xcode/DerivedData \ | |
| -path "*/fluwx_no_pay.build/*.o" 2>/dev/null | head -1) | |
| TARGET="${ARCHIVE:-$OBJECTS}" | |
| if [ -z "$TARGET" ]; then | |
| echo "⚠️ 未找到编译产物,跳过符号检查" | |
| exit 0 | |
| fi | |
| echo "检查目标: $TARGET" | |
| SYMBOLS=$(nm -gjU "$TARGET" 2>/dev/null || nm "$TARGET" 2>/dev/null | awk '{print $NF}') | |
| if printf '%s\n' "$SYMBOLS" | grep -Fxq "_OBJC_CLASS_\$_PayResp" \ | |
| || printf '%s\n' "$SYMBOLS" | grep -Fxq "_OBJC_CLASS_\$_WXNontaxPayResp" \ | |
| || printf '%s\n' "$SYMBOLS" | grep -Fxq "_OBJC_CLASS_\$_WXPayInsuranceResp"; then | |
| echo "❌ fluwx_no_pay binary 中发现支付相关符号!合规检查失败" | |
| printf '%s\n' "$SYMBOLS" | grep -Fx \ | |
| -e "_OBJC_CLASS_\$_PayResp" \ | |
| -e "_OBJC_CLASS_\$_WXNontaxPayResp" \ | |
| -e "_OBJC_CLASS_\$_WXPayInsuranceResp" | head -20 | |
| exit 1 | |
| fi | |
| echo "✅ Binary 无支付相关符号,合规通过" | |
| # ────────────────────────────────────────────── | |
| ios_fluwx_pod: | |
| name: iOS build — fluwx (CocoaPods) | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Disable SPM | |
| run: flutter config --no-enable-swift-package-manager | |
| - name: Install Melos | |
| run: dart pub global activate melos 7.5.1 | |
| - name: Bootstrap | |
| run: melos bootstrap | |
| - name: Build fluwx example (CocoaPods) | |
| run: | | |
| cd packages/fluwx/example | |
| flutter pub get | |
| flutter build ios --no-codesign | |
| # ────────────────────────────────────────────── | |
| ios_fluwx_no_pay_pod: | |
| name: iOS build — fluwx_no_pay (no pay, CocoaPods) | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Disable SPM | |
| run: flutter config --no-enable-swift-package-manager | |
| - name: Install Melos | |
| run: dart pub global activate melos 7.5.1 | |
| - name: Bootstrap | |
| run: melos bootstrap | |
| - name: Build fluwx_no_pay example (CocoaPods) | |
| run: | | |
| cd packages/fluwx_no_pay/example | |
| flutter pub get | |
| cd ios | |
| pod repo update | |
| pod install | |
| cd .. | |
| flutter build ios --no-codesign | |
| # ────────────────────────────────────────────── | |
| android: | |
| name: Android build (fluwx) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Install Melos | |
| run: dart pub global activate melos 7.5.1 | |
| - name: Bootstrap | |
| run: melos bootstrap | |
| - name: Build Android APK (fluwx example) | |
| run: | | |
| cd packages/fluwx/example | |
| flutter build apk --debug | |
| # ────────────────────────────────────────────── | |
| android_no_pay: | |
| name: Android build (fluwx_no_pay) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Install Melos | |
| run: dart pub global activate melos 7.5.1 | |
| - name: Bootstrap | |
| run: melos bootstrap | |
| - name: Build Android APK (fluwx example) | |
| run: | | |
| cd packages/fluwx_no_pay/example | |
| flutter build apk --debug |