-
-
Notifications
You must be signed in to change notification settings - Fork 4
131 lines (114 loc) · 3.67 KB
/
ci.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
name: Build LaLa
on:
push:
tags:
- 'v*'
jobs:
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter --version
- run: flutter config --enable-windows-desktop
- run: flutter build windows
- name: Build Installer
run: |
"%programfiles(x86)%\Inno Setup 6\iscc.exe" ".\dist\windows_inno_setup.iss"
shell: cmd
- uses: actions/upload-artifact@v4
with:
name: LaLa_Setup
path: build\LaLa_Setup.exe
- name: Upload windows setup exe
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/LaLa_Setup.exe
asset_name: LaLa_windows_setup.exe
tag: ${{ github.ref }}
overwrite: true
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev
- run: flutter config --enable-linux-desktop
- run: flutter build linux --target-platform=linux-x64
- name: upload LaLa Build
uses: actions/upload-artifact@v4
with:
name: LaLa_build
path: build
- name: Package Deb App
run: bash dist/linux_deb.sh
- uses: actions/upload-artifact@v4
with:
name: LaLa_amd64_deb
path: build/LaLa_amd64.deb
- name: upload linux deb
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/LaLa_amd64.deb
asset_name: LaLa_linux_amd64.deb
tag: ${{ github.ref }}
overwrite: true
- name: Build AppImage using AppImage-Builder
uses: docker://appimagecrafters/appimage-builder:latest
with:
entrypoint: appimage-builder
args: --recipe dist/AppImageBuilder.yml --skip-test
- uses: actions/upload-artifact@v4
with:
name: LaLa_amd64_appImage
path: '*.AppImage'
- name: Upload linux AppImage
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: LaLa Trainers Launcher-latest-x86_64.AppImage
asset_name: LaLa_linux_amd64.AppImage
tag: ${{ github.ref }}
overwrite: true
build_flatpak:
needs: build_linux
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:freedesktop-23.08
options: --privileged
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: LaLa_build
path: build
- name: Build Flatpak
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: LaLa_linux_amd64.flatpak
manifest-path: dist/com.aironheart.lala.yml
cache-key: flatpak-builder-${{ github.sha }}
- uses: actions/upload-artifact@v4
with:
name: LaLa_amd64_flatpak
path: LaLa_linux_amd64.flatpak
- name: Upload linux flatpak
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: LaLa_linux_amd64.flatpak
asset_name: LaLa_linux_amd64.flatpak
tag: ${{ github.ref }}
overwrite: true