-
-
Notifications
You must be signed in to change notification settings - Fork 8
59 lines (49 loc) · 1.55 KB
/
flatpak.yml
File metadata and controls
59 lines (49 loc) · 1.55 KB
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
name: Build Flatpak
on:
# Enable manual run
workflow_dispatch:
pull_request:
env:
project-id: codes.merritt.FeelingFinder
jobs:
build-flutter-app:
name: Build and compressed Flutter app
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Flutter dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libx11-dev pkg-config cmake ninja-build libblkid-dev
- name: Setup Flutter
uses: subosito/flutter-action@v2
- name: Build Flutter linux version
working-directory: ${{ github.workspace }}/counter_app
run: |
./build-flutter-app.sh
- name: Upload app archive to workflow
uses: actions/upload-artifact@v3
with:
name: FlutterApp-Archive
path: counter_app/FlutterApp-Linux-Portable.tar.gz
build-flatpak:
name: Build flatpak
needs: build-flutter-app
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:freedesktop-22.08
options: --privileged
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build .flatpak
uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v5
with:
bundle: FlutterApp.flatpak
manifest-path: flathub_repo/com.example.FlutterApp.yml
- name: Upload .flatpak artifact to workflow
uses: actions/upload-artifact@v3
with:
name: Flatpak artifact
path: FlutterApp.flatpak