-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (42 loc) · 1.63 KB
/
flatpak.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
name: Flatpak build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout flatpak build templates
uses: actions/checkout@v3
with:
repository: project-imprimis/org.imprimis.Imprimis.flatpak
submodules: true
- name: Flatpak builder cache
id: cache-flatpak
uses: actions/cache@v3
env:
cache-name: cache-flatpak
with:
path: .flatpak-builder
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/org.imprimis.Imprimis.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Update package list
run: sudo apt-get update
- name: Install flatpak
run: sudo apt-get install flatpak flatpak-builder
- name: Add Flathub repository
run: sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- name: Install flatpak SDK/dependencies
run: sudo flatpak install --assumeyes flathub org.freedesktop.Platform/x86_64/21.08 org.freedesktop.Sdk/x86_64/21.08 org.freedesktop.Platform.GL.default/x86_64/21.08
- name: Configure git
run: git config --global protocol.file.allow always
- name: Build flatpak
run: flatpak-builder --repo=local build-dir org.imprimis.Imprimis.json
- name: Bundle flatpak
run: flatpak build-bundle ./local imprimis.flatpak org.imprimis.Imprimis
- name: Upload build artifact
uses: actions/upload-artifact@v2
with:
name: imprimis-flatpak
path: ./imprimis.flatpak