Refactor/home page background #1142
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: Build iOS | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| outputs: | |
| ios: ${{ steps.filter.outputs.ios }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| filters: | | |
| ios: | |
| - 'ios/**' | |
| - 'assets/**' | |
| - 'lib/**' | |
| - 'pubspec.yaml' | |
| iOS: | |
| needs: changes | |
| if: ${{ needs.changes.outputs.ios == 'true' }} | |
| runs-on: macos-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "stable" | |
| cache: true | |
| # The iOS build uses Swift Package Manager, not CocoaPods (there is no | |
| # Podfile). Cache SPM's clone/artifact store keyed on the resolved pins. | |
| - name: Cache Swift Packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/Library/Caches/org.swift.swiftpm | |
| ~/Library/Developer/Xcode/DerivedData/**/SourcePackages | |
| key: ${{ runner.os }}-spm-${{ hashFiles('ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved') }} | |
| restore-keys: | | |
| ${{ runner.os }}-spm- | |
| - name: Install dependencies and run build_runner | |
| run: | | |
| flutter pub get | |
| dart run build_runner build --delete-conflicting-outputs | |
| - name: Build iOS App and create IPA | |
| run: | | |
| flutter build ios --debug --no-codesign | |
| mkdir -p Payload | |
| cp -R build/ios/iphoneos/Runner.app Payload/Runner.app | |
| zip -qr DPIP.ipa Payload | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: DPIP-iOS | |
| path: | | |
| build/ios/iphoneos/Runner.app | |
| DPIP.ipa | |
| retention-days: 7 | |
| compression-level: 6 |