Skip to content

Commit 9b1ed1f

Browse files
authored
Update debugbuild.yml
1 parent 91141ad commit 9b1ed1f

1 file changed

Lines changed: 45 additions & 51 deletions

File tree

.github/workflows/debugbuild.yml

Lines changed: 45 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -6,79 +6,73 @@ on:
66
- "**"
77

88
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
1612
steps:
1713
- name: Checkout repository
1814
uses: actions/checkout@v4
1915

2016
- name: Setup Flutter
2117
uses: subosito/flutter-action@v2
2218
with:
23-
flutter-version: "3.29.1"
19+
flutter-version: "3.29.3"
2420
cache: true
2521

2622
- name: Install Flutter dependencies
2723
run: flutter pub get
2824

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-
5025
- name: Install Linux dependencies
51-
if: matrix.os == 'ubuntu-latest'
5226
run: |
5327
sudo apt-get update
5428
sudo apt-get install -y \
5529
libgtk-3-dev \
5630
libayatana-appindicator3-dev \
5731
libmpv-dev
5832
33+
- name: Build Android APK
34+
run: flutter build apk --debug --split-per-abi --flavor dev --dart-define=FLUTTER_FLAVOR=dev
5935

60-
61-
# Linux Debug Build
62-
- name: Build Linux (Debug)
63-
if: matrix.os == 'ubuntu-latest'
36+
- name: Build Linux
6437
run: flutter build linux --debug
6538

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
8157

82-
- name: Build iOS (Debug - No Codesign)
83-
if: matrix.os == 'macos-latest'
58+
- name: Build iOS (No Codesign)
8459
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

Comments
 (0)