|
6 | 6 | - "**" |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - build: |
10 | | - name: Debug Build |
11 | | - strategy: |
12 | | - matrix: |
13 | | - os: [ubuntu-latest, macos-latest, windows-latest] |
14 | | - runs-on: ${{ matrix.os }} |
15 | | - |
| 9 | + LINUXANDROID: |
| 10 | + name: Linux & Android |
| 11 | + runs-on: ubuntu-latest |
16 | 12 | steps: |
17 | 13 | - name: Checkout repository |
18 | 14 | uses: actions/checkout@v4 |
19 | 15 |
|
20 | 16 | - name: Setup Flutter |
21 | 17 | uses: subosito/flutter-action@v2 |
22 | 18 | with: |
23 | | - flutter-version: "3.29.1" |
| 19 | + flutter-version: "3.29.3" |
24 | 20 | cache: true |
25 | 21 |
|
26 | 22 | - name: Install Flutter dependencies |
27 | 23 | run: flutter pub get |
28 | 24 |
|
29 | | - - name: Analyze code |
30 | | - run: flutter analyze || true |
31 | | - |
32 | | - - name: Run tests |
33 | | - run: flutter test || true |
34 | | - |
35 | | - # Android Debug Build |
36 | | - - name: Build Android Debug APK (Split by ABI) |
37 | | - if: matrix.os == 'ubuntu-latest' |
38 | | - run: flutter build apk --debug --split-per-abi --flavor dev --dart-define=FLUTTER_FLAVOR=dev |
39 | | - |
40 | | - # Windows Debug Build |
41 | | - - name: Build Windows (Debug) |
42 | | - if: matrix.os == 'windows-latest' |
43 | | - run: flutter build windows --debug |
44 | | - |
45 | | - # macOS Debug Build |
46 | | - - name: Build macOS (Debug) |
47 | | - if: matrix.os == 'macos-latest' |
48 | | - run: flutter build macos --debug |
49 | | - |
50 | 25 | - name: Install Linux dependencies |
51 | | - if: matrix.os == 'ubuntu-latest' |
52 | 26 | run: | |
53 | 27 | sudo apt-get update |
54 | 28 | sudo apt-get install -y \ |
55 | 29 | libgtk-3-dev \ |
56 | 30 | libayatana-appindicator3-dev \ |
57 | 31 | libmpv-dev |
58 | 32 |
|
| 33 | + - name: Build Android APK |
| 34 | + run: flutter build apk --debug --split-per-abi --flavor dev --dart-define=FLUTTER_FLAVOR=dev |
59 | 35 |
|
60 | | -
|
61 | | - # Linux Debug Build |
62 | | - - name: Build Linux (Debug) |
63 | | - if: matrix.os == 'ubuntu-latest' |
| 36 | + - name: Build Linux |
64 | 37 | run: flutter build linux --debug |
65 | 38 |
|
66 | | - # iOS Debug Build (Only on macOS) |
67 | | - - name: Generate iOS plugins |
68 | | - if: matrix.os == 'macos-latest' |
69 | | - run: flutter pub run build_runner build --delete-conflicting-outputs || true |
70 | | - |
71 | | - - name: Install CocoaPods dependencies (iOS) |
72 | | - if: matrix.os == 'macos-latest' |
73 | | - working-directory: ios |
74 | | - run: pod install |
75 | | - |
76 | | - - name: Echo Podfile after installing pods (iOS) |
77 | | - if: matrix.os == 'macos-latest' && always() |
78 | | - run: | |
79 | | - echo "Echoing Podfile contents:" |
80 | | - cat ios/Podfile || true # Adjust the path if needed |
| 39 | + MACOSIOS: |
| 40 | + name: MacOS & iOS |
| 41 | + runs-on: macos-latest |
| 42 | + steps: |
| 43 | + - name: Checkout repository |
| 44 | + uses: actions/checkout@v4 |
| 45 | + |
| 46 | + - name: Setup Flutter |
| 47 | + uses: subosito/flutter-action@v2 |
| 48 | + with: |
| 49 | + flutter-version: "3.29.1" |
| 50 | + cache: true |
| 51 | + |
| 52 | + - name: Install Flutter dependencies |
| 53 | + run: flutter pub get |
| 54 | + |
| 55 | + - name: Build macOS |
| 56 | + run: flutter build macos --debug |
81 | 57 |
|
82 | | - - name: Build iOS (Debug - No Codesign) |
83 | | - if: matrix.os == 'macos-latest' |
| 58 | + - name: Build iOS (No Codesign) |
84 | 59 | run: flutter build ios --debug --no-codesign |
| 60 | + |
| 61 | + WINDOWS: |
| 62 | + name: Windows |
| 63 | + runs-on: windows-latest |
| 64 | + steps: |
| 65 | + - name: Checkout repository |
| 66 | + uses: actions/checkout@v4 |
| 67 | + |
| 68 | + - name: Setup Flutter |
| 69 | + uses: subosito/flutter-action@v2 |
| 70 | + with: |
| 71 | + flutter-version: "3.29.1" |
| 72 | + cache: true |
| 73 | + |
| 74 | + - name: Install Flutter dependencies |
| 75 | + run: flutter pub get |
| 76 | + |
| 77 | + - name: Build Windows |
| 78 | + run: flutter build windows --debug |
0 commit comments