-
-
Notifications
You must be signed in to change notification settings - Fork 78
52 lines (44 loc) · 1.63 KB
/
flatpak.yml
File metadata and controls
52 lines (44 loc) · 1.63 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
# Author: Kang Lin<kl222@126.com>
name: flatpak
on:
workflow_call:
outputs:
name:
description: "The artifact name"
value: ${{ jobs.build_flatpak.outputs.name }}
jobs:
build_flatpak:
strategy:
matrix:
variant:
- arch: x86_64
os: ubuntu-24.04
- arch: aarch64
os: ubuntu-24.04-arm
env:
artifact_name: build_flatpak
RabbitRemoteControl_VERSION: v1.0.0-dev
# See: [About GitHub-hosted runners](https://docs.github.com/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners)
# See: [Choosing the runner for a job](https://docs.github.com/actions/writing-workflows/choosing-where-your-workflow-runs/choosing-the-runner-for-a-job)
# See: https://github.com/actions/runner-images/
runs-on: ${{ matrix.variant.os }}
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-44
options: --privileged
# Map the job outputs to step outputs
outputs:
name: ${{ env.artifact_name }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Flatpak build
uses: flathub-infra/flatpak-github-actions/flatpak-builder@master
with:
bundle: RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_Linux_${{ matrix.variant.arch }}.flatpak
manifest-path: Package/Flatpak/io.github.KangLin.RabbitRemoteControl.yml
cache-key: flatpak-builder-${{ github.sha }}
arch: ${{ matrix.variant.arch }}
verbose: true