9
9
- aes-algorithm
10
10
11
11
jobs :
12
- build_android :
12
+ build :
13
13
runs-on : ubuntu-latest
14
-
15
- steps :
16
- - name : Check out the repository
17
- uses : actions/checkout@v2
18
-
19
- - name : Set up Flutter
20
- uses : subosito/flutter-action@v2
21
- with :
22
- flutter-version : ' 3.19.6' # Specify the Flutter version, e.g., '2.10.0'
23
-
24
- - name : Install dependencies
25
- run : flutter pub get
26
-
27
- - name : Run tests
28
- run : flutter test
29
-
30
- - name : Upload coverage to Codecov
31
- uses : codecov/codecov-action@v2
32
- with :
33
- files : ./coverage/lcov.info
34
- flags : flutter
35
- name : code-coverage-report
36
- token : 2f59bcbb-7263-4e0c-9a37-e710e39705bb # Add this to your GitHub secrets
37
- fail_ci_if_error : true
38
-
39
- - name : Build APK
40
- run : flutter build apk --release # Build APK for Android
41
-
42
- # Optionally, you can add a step to upload the APK as an artifact
43
- - name : Upload APK artifact
44
- uses : actions/upload-artifact@v2
45
- with :
46
- name : my_app_apk
47
- path : build/app/outputs/flutter-apk/app-release.apk
48
-
49
- build_ios :
50
- runs-on : macos-latest
51
-
52
- steps :
53
- - name : Check out the repository
54
- uses : actions/checkout@v2
55
-
56
- - name : Set up Flutter
57
- uses : subosito/flutter-action@v2
58
- with :
59
- flutter-version : ' 3.19.6'
60
-
61
- - name : Install dependencies
62
- run : flutter pub get
63
-
64
- - name : Build iOS
65
- run : flutter build ios --release --no-codesign # Build iOS without code signing
66
-
67
- # Optionally, you can add a step to upload the iOS build as an artifact
68
- - name : Upload iOS artifact
69
- uses : actions/upload-artifact@v2
70
- with :
71
- name : my_app_ios
72
- path : build/ios/iphoneos/*.app # Adjust the path according to your iOS build output
14
+ steps :
15
+ - name : Check out the repository
16
+ uses : actions/checkout@v2
17
+
18
+ - name : Set up Flutter
19
+ uses : subosito/flutter-action@v2
20
+ with :
21
+ flutter-version : ' 3.19.6' # Specify the Flutter version, e.g., 'stable'
22
+
23
+ - name : Install dependencies
24
+ run : flutter pub get
25
+
26
+ - name : Run tests
27
+ run : flutter test
28
+
29
+ - name : Upload coverage to Codecov
30
+ uses : codecov/codecov-action@v2
31
+ with :
32
+ files : ./coverage/lcov.info
33
+ flags : flutter
34
+ name : code-coverage-report
35
+ token : 2f59bcbb-7263-4e0c-9a37-e710e39705bb # Add this to your GitHub secrets
36
+ fail_ci_if_error : true
0 commit comments