ci: use Flutter stable, refresh pods, and log build diagnostics to step summary
Build Android APK / Build Release APKs (push) Successful in 16m55s
Build Android APK / Build Release APKs (push) Successful in 16m55s
This commit is contained in:
@@ -20,28 +20,39 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Select Xcode Version
|
||||
run: |
|
||||
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
|
||||
xcodebuild -version
|
||||
|
||||
- name: Set up Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
flutter-version: '3.19.3'
|
||||
channel: 'stable'
|
||||
cache: true
|
||||
|
||||
- name: Inspect Environment
|
||||
run: |
|
||||
flutter --version
|
||||
xcodebuild -version
|
||||
pod --version
|
||||
|
||||
- name: Fetch Flutter Dependencies
|
||||
run: flutter pub get
|
||||
|
||||
- name: Clean Stale Podfile Lock
|
||||
run: |
|
||||
rm -rf ios/Pods ios/Podfile.lock
|
||||
|
||||
- name: Build iOS (Unsigned IPA)
|
||||
run: |
|
||||
# Flutter automatically manages CocoaPods installation
|
||||
flutter build ios --release --no-codesign
|
||||
flutter build ios --release --no-codesign --verbose 2>&1 | tee build.log || {
|
||||
echo ### ❌ iOS Build Failed >>
|
||||
echo '`' >>
|
||||
tail -n 120 build.log >>
|
||||
echo '`' >>
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Package Runner.app into installable IPA
|
||||
mkdir -p build/ios/iphoneos/Payload
|
||||
cp -r build/ios/iphoneos/Runner.app build/ios/iphoneos/Payload/
|
||||
cd build/ios/iphoneos
|
||||
|
||||
Reference in New Issue
Block a user