-
-
Notifications
You must be signed in to change notification settings - Fork 105
76 lines (67 loc) · 1.79 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
name: Flatpak
on:
pull_request:
push:
branches:
- master
tags:
- v*
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
strategy:
matrix:
arch:
- x86_64
- aarch64
exclude:
- arch: ${{ github.event_name == 'pull_request' && 'aarch64' }}
fail-fast: false
container:
image: bilelmoussaoui/flatpak-github-actions:kde-6.7
options: --privileged
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install deps
if: ${{ matrix.arch != 'x86_64' }}
run: |
dnf -y install docker
- name: Set up QEMU
if: ${{ matrix.arch != 'x86_64' }}
id: qemu
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: io.ossia.score.${{ matrix.arch }}.flatpak
manifest-path: ./cmake/Deployment/Linux/Flatpak/io.ossia.score.yml
cache-key: flatpak-builder-${{ github.sha }}
arch: ${{ matrix.arch }}
- name: Continuous
uses: softprops/action-gh-release@v2
if: github.event_name != 'pull_request'
with:
name: "Continuous"
tag_name: "continuous"
body: ""
append_body: true
generate_release_notes: false
files: |
*.flatpak
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'
with:
body: ""
append_body: true
generate_release_notes: false
files: |
*.flatpak