-
Notifications
You must be signed in to change notification settings - Fork 6
62 lines (52 loc) · 1.68 KB
/
Copy pathlinux-flatpak.yml
File metadata and controls
62 lines (52 loc) · 1.68 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
60
61
62
name: Linux Flatpak Build
on:
push:
branches: [ "dev", "release/**" ]
paths-ignore:
- 'README.md'
- 'LICENSE'
- 'docs/**'
pull_request:
branches: [ "**" ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
build-flatpak:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: 'oracle'
cache: maven
- name: Install Build Dependencies
run: |
sudo apt-get update
sudo apt-get install -y flatpak flatpak-builder
- name: Add Flathub Remote
run: |
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
- name: Install Flatpak Runtime and SDK
run: |
flatpak install --user --noninteractive flathub \
org.freedesktop.Platform//25.08 \
org.freedesktop.Sdk//25.08 \
org.freedesktop.Sdk.Extension.openjdk25//25.08
- name: Build Flatpak Bundle
# Explicitly activating the linux-flatpak profile to ensure jpackage/antrun runs.
run: mvn clean install -pl jdm-core,jdm-dist/jdm-flatpak -am -Plinux-flatpak --no-transfer-progress
- name: Upload Flatpak Artifact
uses: actions/upload-artifact@v7
with:
name: flatpak-package
path: jdm-dist/jdm-flatpak/target/*.flatpak
if-no-files-found: error
# Disable zipping so it can be downloaded raw from the Actions tab
archive: false