-
Notifications
You must be signed in to change notification settings - Fork 248
80 lines (66 loc) · 1.96 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
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
name: Build audiveris flatpak package
# execute this workflow on every push
on:
- push
permissions:
contents: read
jobs:
java-dependencies:
name: "Get java dependencies"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: true
- name: Setup Java 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: zulu
- name: Determine Java dependencies
run: >-
dev/flatpak/create-flatpak-dependencies.py
- name: force flatpak build from ${{ github.sha }}
run: >-
sed -i
-e 's,\(url: https://github.com\)/.*,\1/${{ github.repository }},'
-e 's,tag: .*,branch: ${{ github.ref_name }},'
-e 's,commit: .*,commit: ${{ github.sha }},'
dev/flathub/org.audiveris.audiveris.yml
- name: upload flathub archive
uses: actions/upload-artifact@v3
with:
name: flathub-data
path: dev/flathub/
flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-44
options: --privileged
strategy:
matrix:
arch: [x86_64, aarch64]
fail-fast: false
steps:
- name: download flathub archive
uses: actions/download-artifact@v3
with:
name: flathub-data
- name: Install docker
if: ${{ matrix.arch != 'x86_64' }}
run: |
dnf -y install docker
- name: Set up QEMU
if: ${{ matrix.arch != 'x86_64' }}
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
build-bundle: true
bundle: org.audiveris.audiveris.flatpak
manifest-path: org.audiveris.audiveris.yml
cache-key: audiveris-flatpak-${{ github.sha }}
arch: ${{ matrix.arch }}