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
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Select Xcode Version
|
||||||
|
run: |
|
||||||
|
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
|
||||||
|
xcodebuild -version
|
||||||
|
|
||||||
- name: Set up Flutter
|
- name: Set up Flutter
|
||||||
uses: subosito/flutter-action@v2
|
uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version: '3.19.3'
|
|
||||||
channel: 'stable'
|
channel: 'stable'
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: Inspect Environment
|
- name: Inspect Environment
|
||||||
run: |
|
run: |
|
||||||
flutter --version
|
flutter --version
|
||||||
xcodebuild -version
|
|
||||||
pod --version
|
pod --version
|
||||||
|
|
||||||
- name: Fetch Flutter Dependencies
|
- name: Fetch Flutter Dependencies
|
||||||
run: flutter pub get
|
run: flutter pub get
|
||||||
|
|
||||||
|
- name: Clean Stale Podfile Lock
|
||||||
|
run: |
|
||||||
|
rm -rf ios/Pods ios/Podfile.lock
|
||||||
|
|
||||||
- name: Build iOS (Unsigned IPA)
|
- name: Build iOS (Unsigned IPA)
|
||||||
run: |
|
run: |
|
||||||
# Flutter automatically manages CocoaPods installation
|
flutter build ios --release --no-codesign --verbose 2>&1 | tee build.log || {
|
||||||
flutter build ios --release --no-codesign
|
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
|
mkdir -p build/ios/iphoneos/Payload
|
||||||
cp -r build/ios/iphoneos/Runner.app build/ios/iphoneos/Payload/
|
cp -r build/ios/iphoneos/Runner.app build/ios/iphoneos/Payload/
|
||||||
cd build/ios/iphoneos
|
cd build/ios/iphoneos
|
||||||
|
|||||||
Reference in New Issue
Block a user