-
-
Notifications
You must be signed in to change notification settings - Fork 15
140 lines (130 loc) · 3.48 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
131
132
133
134
135
136
137
138
139
140
name: Build and Deploy
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build_windows:
name: Windows Client
runs-on: windows-latest
defaults:
run:
shell: bash
working-directory: ./system_theme/example
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
- name: Build for Windows
run: flutter build windows --verbose
build_android:
name: Android Client
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./system_theme/example
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
- run: flutter build apk --verbose --split-per-abi
- run: flutter build appbundle --verbose
build_iOS:
name: iOS Client
runs-on: macos-latest
defaults:
run:
shell: bash
working-directory: ./system_theme/example
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
- run: flutter build ios --verbose --release --no-codesign
- run: flutter build ipa --verbose --release --no-codesign
build_macOS:
name: macOS Client
runs-on: macos-latest
defaults:
run:
shell: bash
working-directory: ./system_theme/example
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
- run: flutter build macos
build_linux:
name: Linux Client
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./system_theme/example
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
- run: flutter build linux --verbose
build_web:
name: Web Client
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./system_theme/example
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
- run: flutter build web --verbose