-
Notifications
You must be signed in to change notification settings - Fork 21
63 lines (60 loc) · 1.83 KB
/
flutter_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Flutter Build
on:
push:
branches:
- master
pull_request:
jobs:
build_ios:
name: (iOS)
runs-on: macos-latest
timeout-minutes: 15
strategy:
# When set to true, GitHub cancels all in-progress jobs if any
# matrix job fails.
fail-fast: false
matrix:
api-level: [21,31] # [minSdk, most used, newest (30 is not working :(] 19 would be minSDK but does not support x86_64
target: [default] # [default, google_apis]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17.0.11'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.24.3'
- run: 'flutter --version'
- run: 'flutter doctor -v'
- run: 'flutter pub get'
- run: 'flutter gen-l10n'
- run: 'flutter build ios -t "lib/mains/main_netknights.dart" --debug --flavor netknights --no-codesign'
build_appbundle:
name: (Android)
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
# When set to true, GitHub cancels all in-progress jobs if any
# matrix job fails.
fail-fast: false
matrix:
api-level: [ 21, 30, 34 ] # [minSdk, most used, newest]
target: [ default ] # [default, google_apis]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17.0.11'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.24.3'
- run: 'flutter clean'
- run: 'flutter --version'
- run: 'flutter doctor -v'
- run: 'flutter pub get'
- run: 'flutter gen-l10n'
- run: 'flutter build apk -t "lib/mains/main_netknights.dart" --debug --flavor netknights'