-
-
Notifications
You must be signed in to change notification settings - Fork 166
70 lines (58 loc) · 1.73 KB
/
build-linux.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
name: Build Linux
on:
push:
branches:
- main
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.22.2'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build pkg-config libgtk-3-dev libvulkan-dev
- name: Build Linux App
run: |
flutter pub get
flutter build linux
- name: Upload Linux Build
uses: actions/upload-artifact@v4
with:
name: maid-linux
path: build/linux/x64/release/bundle
create-appimage:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download Linux Build
uses: actions/download-artifact@v4
with:
name: maid-linux
path: maid-linux
- name: Install AppImage tools and dependencies
run: |
sudo apt-get update
sudo apt-get install -y appstream util-linux libfuse2
- name: Download and Install AppImageTool
run: |
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
sudo mv appimagetool-x86_64.AppImage /usr/local/bin/appimagetool
- name: Create AppImage
run: ./.github/scripts/create_appimage.sh
- name: Upload AppImage
uses: actions/upload-artifact@v4
with:
name: maid-appimage
path: ./maid.AppImage