-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1.18 KB
/
flutter.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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Flutter build appbundle
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.3'
- run: flutter pub get
# - run: flutter test test_driver/integration_test.dart
- run: |
echo flutter.minSdkVersion=21 >> /home/runner/work/chemobile/chemobile/android/local.properties
echo flutter.targetSdkVersion=30 >> /home/runner/work/chemobile/chemobile/android/local.properties
echo flutter.compileSdkVersion=30 >> /home/runner/work/chemobile/chemobile/android/local.properties
cat /home/runner/work/chemobile/chemobile/android/local.properties
pwd
# - run: flutter build apk
- run: flutter build appbundle --debug