-
-
Notifications
You must be signed in to change notification settings - Fork 15
130 lines (120 loc) · 3.43 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
name: Build and Deploy
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build_windows:
name: Windows Client
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- run: git config --system core.longpaths true
- name: Flutter Pub Get
run: flutter pub get
working-directory: ./example
- name: Build for Windows
run: flutter build windows --verbose
working-directory: ./example
build_android:
name: Android Client
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- uses: subosito/flutter-action@v2.8.0
with:
channel: "stable"
cache: true
- run: flutter pub get
working-directory: ./example
- run: flutter build apk --verbose --split-per-abi
working-directory: ./example
- run: flutter build appbundle --verbose
working-directory: ./example
build_iOS:
name: iOS Client
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- uses: subosito/flutter-action@v2.8.0
with:
channel: "stable"
architecture: x64
cache: true
- run: flutter pub get
working-directory: ./example
- run: flutter build ios --verbose --release --no-codesign
working-directory: ./example
- run: flutter build ipa --verbose --release --no-codesign
working-directory: ./example
build_macOS:
name: macOS Client
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- uses: subosito/flutter-action@v2.8.0
with:
channel: "stable"
architecture: x64
cache: true
- run: flutter pub get
working-directory: ./example
- run: flutter build macos
working-directory: ./example
build_linux:
name: Linux Client
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- run: sudo apt-get update -y
- run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev mpv libmpv-dev dpkg-dev p7zip-full p7zip-rar
- uses: subosito/flutter-action@v2.8.0
with:
channel: "stable"
cache: true
- run: flutter pub get
working-directory: ./example
- run: flutter build linux --verbose
working-directory: ./example
build_web:
name: Web Client
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- uses: subosito/flutter-action@v2.8.0
with:
channel: "stable"
cache: true
- run: flutter pub get
working-directory: ./example
- run: flutter build web --verbose
working-directory: ./example