-
Notifications
You must be signed in to change notification settings - Fork 22
60 lines (56 loc) · 1.65 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
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@v2
- uses: actions/setup-java@v1
with:
java-version: '17.0.7'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.10.5'
- run: "flutter upgrade"
- run: "flutter --version"
- run: "flutter pub get"
- run: "flutter build ios -t 'lib/main_netknights.dart' --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@v2
- uses: actions/setup-java@v1
with:
java-version: '17.0.7'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.10.5'
- run: "flutter upgrade"
- run: "flutter --version"
- run: "flutter pub get"
- run: 'flutter clean'
- run: "flutter build apk -t 'lib/main_netknights.dart' --debug"