-
-
Notifications
You must be signed in to change notification settings - Fork 324
57 lines (53 loc) · 1.39 KB
/
main.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
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
push:
branches:
- master
tags:
- 1.*
jobs:
build_android:
name: Build Flutter (Android)
runs-on: ubuntu-latest
env:
working-directory: ./example
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: '12.x'
distribution: 'zulu'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: "3.3.3"
- name: Dependencies
run: flutter pub get
working-directory: ${{env.working-directory}}
- name: Build APK
working-directory: ${{env.working-directory}}
run: flutter build apk --debug
build_ios:
name: Build Flutter (iOS)
runs-on: macOS-latest
env:
working-directory: ./example
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: '12.x'
distribution: 'zulu'
- uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.3.3"
architecture: x64
- name: Dependencies
run: flutter pub get
working-directory: ${{env.working-directory}}
- name: Build IPA
working-directory: ${{env.working-directory}}
run: flutter build ios --release --no-codesign