|
6 | 6 | pull_request: |
7 | 7 | branches: [ master, main ] |
8 | 8 | workflow_dispatch: |
9 | | - inputs: |
10 | | - build_android: |
11 | | - description: 'Build Android APK' |
12 | | - required: true |
13 | | - type: boolean |
14 | | - default: false |
15 | | - build_ios: |
16 | | - description: 'Build iOS' |
17 | | - required: true |
18 | | - type: boolean |
19 | | - default: false |
20 | | - build_web: |
21 | | - description: 'Build Web' |
22 | | - required: true |
23 | | - type: boolean |
24 | | - default: false |
25 | | - build_windows: |
26 | | - description: 'Build Windows' |
27 | | - required: true |
28 | | - type: boolean |
29 | | - default: false |
30 | | - build_macos: |
31 | | - description: 'Build macOS' |
32 | | - required: true |
33 | | - type: boolean |
34 | | - default: false |
35 | | - build_linux: |
36 | | - description: 'Build Linux' |
37 | | - required: true |
38 | | - type: boolean |
39 | | - default: false |
40 | 9 |
|
41 | 10 | jobs: |
42 | | - build: |
| 11 | + android: |
| 12 | + name: Android Build |
| 13 | + if: false # ENABLE_ANDROID: Set to true to enable hardware allocation |
43 | 14 | runs-on: ubuntu-latest |
44 | | - if: false # Explicitly disabled: project not ready for release builds |
45 | 15 | steps: |
46 | 16 | - uses: actions/checkout@v3 |
47 | | - |
48 | | - - name: Setup Flutter |
49 | | - uses: subosito/flutter-action@v2 |
| 17 | + - uses: subosito/flutter-action@v2 |
50 | 18 | with: |
51 | 19 | flutter-version: '3.10.7' |
52 | | - channel: 'stable' |
53 | | - cache: true |
| 20 | + - run: flutter pub get |
| 21 | + - run: flutter build apk --release |
54 | 22 |
|
55 | | - - name: Install Dependencies |
56 | | - run: flutter pub get |
57 | | - |
58 | | - - name: Build Android |
59 | | - if: ${{ github.event_name == 'push' || inputs.build_android }} |
60 | | - run: flutter build apk --release |
| 23 | + ios: |
| 24 | + name: iOS Build |
| 25 | + if: false # ENABLE_IOS: Set to true to enable hardware allocation |
| 26 | + runs-on: macos-latest |
| 27 | + steps: |
| 28 | + - uses: actions/checkout@v3 |
| 29 | + - uses: subosito/flutter-action@v2 |
| 30 | + with: |
| 31 | + flutter-version: '3.10.7' |
| 32 | + - run: flutter pub get |
| 33 | + - run: flutter build ios --release --no-codesign |
61 | 34 |
|
62 | | - - name: Build Web |
63 | | - if: ${{ github.event_name == 'push' || inputs.build_web }} |
64 | | - run: flutter build web --release |
| 35 | + web: |
| 36 | + name: Web Build |
| 37 | + if: false # ENABLE_WEB: Set to true to enable hardware allocation |
| 38 | + runs-on: ubuntu-latest |
| 39 | + steps: |
| 40 | + - uses: actions/checkout@v3 |
| 41 | + - uses: subosito/flutter-action@v2 |
| 42 | + with: |
| 43 | + flutter-version: '3.10.7' |
| 44 | + - run: flutter pub get |
| 45 | + - run: flutter build web --release |
65 | 46 |
|
66 | | - - name: Build Windows |
67 | | - if: ${{ inputs.build_windows }} |
68 | | - run: flutter build windows --release |
| 47 | + windows: |
| 48 | + name: Windows Build |
| 49 | + if: false # ENABLE_WINDOWS: Set to true to enable hardware allocation |
| 50 | + runs-on: windows-latest |
| 51 | + steps: |
| 52 | + - uses: actions/checkout@v3 |
| 53 | + - uses: subosito/flutter-action@v2 |
| 54 | + with: |
| 55 | + flutter-version: '3.10.7' |
| 56 | + - run: flutter pub get |
| 57 | + - run: flutter build windows --release |
69 | 58 |
|
70 | | - - name: Build macOS |
71 | | - if: ${{ inputs.build_macos }} |
72 | | - run: flutter build macos --release |
| 59 | + macos: |
| 60 | + name: macOS Build |
| 61 | + if: false # ENABLE_MACOS: Set to true to enable hardware allocation |
| 62 | + runs-on: macos-latest |
| 63 | + steps: |
| 64 | + - uses: actions/checkout@v3 |
| 65 | + - uses: subosito/flutter-action@v2 |
| 66 | + with: |
| 67 | + flutter-version: '3.10.7' |
| 68 | + - run: flutter pub get |
| 69 | + - run: flutter build macos --release |
73 | 70 |
|
74 | | - - name: Build Linux |
75 | | - if: ${{ inputs.build_linux }} |
76 | | - run: | |
| 71 | + linux: |
| 72 | + name: Linux Build |
| 73 | + if: false # ENABLE_LINUX: Set to true to enable hardware allocation |
| 74 | + runs-on: ubuntu-latest |
| 75 | + steps: |
| 76 | + - uses: actions/checkout@v3 |
| 77 | + - uses: subosito/flutter-action@v2 |
| 78 | + with: |
| 79 | + flutter-version: '3.10.7' |
| 80 | + - run: | |
77 | 81 | sudo apt-get update -y |
78 | 82 | sudo apt-get install -y ninja-build libgtk-3-dev |
| 83 | + flutter pub get |
79 | 84 | flutter build linux --release |
0 commit comments