File tree 2 files changed +31
-4
lines changed
2 files changed +31
-4
lines changed Original file line number Diff line number Diff line change 44
44
with :
45
45
channel : ' master'
46
46
- name : Enable desktop support
47
- run : flutter config --enable-linux-desktop
47
+ run : |
48
+ flutter config --enable-linux-desktop
49
+ sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev
48
50
- name : Build Linux app
49
51
run : flutter build linux
50
52
- name : Create artifact
Original file line number Diff line number Diff line change 14
14
- name : Install Flutter
15
15
uses : subosito/flutter-action@v1.5.3
16
16
with :
17
- flutter-version : ' 2.2.2 '
17
+ channel : ' master '
18
18
- name : Enable desktop support
19
19
run : flutter config --enable-windows-desktop
20
20
- name : Build Windows app
@@ -29,10 +29,35 @@ jobs:
29
29
uses : papeloto/action-zip@v1
30
30
with :
31
31
files : ./build/windows/runner/Release/
32
- dest : ./Windows .zip
32
+ dest : ./windows .zip
33
33
- name : Upload as asset
34
34
uses : AButler/upload-release-assets@v2.0
35
35
with :
36
- files : ' ./Windows .zip'
36
+ files : ' ./windows .zip'
37
37
repo-token : ${{ secrets.GITHUB_TOKEN }}
38
38
39
+ build_linux :
40
+ runs-on : ubuntu-latest
41
+ steps :
42
+ - name : Check out repository
43
+ uses : actions/checkout@v2.3.4
44
+ - name : Install Flutter
45
+ uses : subosito/flutter-action@v1.5.3
46
+ with :
47
+ channel : ' master'
48
+ - name : Enable desktop support
49
+ run : |
50
+ flutter config --enable-linux-desktop
51
+ sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev
52
+ - name : Build Linux app
53
+ run : flutter build linux
54
+ - name : Create zip
55
+ uses : papeloto/action-zip@v1
56
+ with :
57
+ files : ./build/linux/x64/release/bundle/
58
+ dest : ./linux.zip
59
+ - name : Upload as asset
60
+ uses : AButler/upload-release-assets@v2.0
61
+ with :
62
+ files : ' ./linux.zip'
63
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments