-
-
Notifications
You must be signed in to change notification settings - Fork 128
82 lines (77 loc) · 2.35 KB
/
hello_world_build.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
name: "HelloWorld: Build"
on:
push:
branches: [main]
pull_request:
types: [opened, reopened]
jobs:
build-aab:
name: Build AAB
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.24.1
- uses: bluefireteam/melos-action@v3
- run: |
dart ../../packages/flutter_distributor/bin/main.dart package \
--platform=android \
--targets aab
working-directory: examples/hello_world
build-apk:
name: Build APK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.24.1
- uses: bluefireteam/melos-action@v3
- run: |
dart ../../packages/flutter_distributor/bin/main.dart package \
--platform=android \
--targets apk
working-directory: examples/hello_world
build-appimage:
name: Build AppImage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.24.1
- run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libfuse2
- uses: bluefireteam/melos-action@v3
- run: |
wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
chmod +x appimagetool
mv appimagetool /usr/local/bin/
- run: |
dart ../../packages/flutter_distributor/bin/main.dart package \
--platform=linux \
--targets appimage
working-directory: examples/hello_world
build-deb:
name: Build DEB
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.24.1
- run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev
- uses: bluefireteam/melos-action@v3
- run: |
dart ../../packages/flutter_distributor/bin/main.dart package \
--platform=linux \
--targets deb
working-directory: examples/hello_world