-
Notifications
You must be signed in to change notification settings - Fork 73
101 lines (100 loc) · 3.3 KB
/
ci.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: CI
on:
pull_request:
push:
branches:
- master
jobs:
ubuntu-java-11:
name: Ubuntu (Java 11)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- name: Install dependencies
run: sudo npm install -g less
- name: Build with Maven
run: mvn clean package
- name: Create package
run: |
cd phoenicis-dist/src/scripts
bash phoenicis-create-package.sh
- uses: actions/upload-artifact@v3
with:
name: Ubuntu
path: phoenicis-dist/target/*.deb
if-no-files-found: error
ubuntu-java-15:
name: Ubuntu (Java 15)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 15
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '15'
cache: 'maven'
- name: Install dependencies
run: sudo npm install -g less
- name: Build with Maven
run: mvn clean package
flatpak:
name: Flatpak
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- name: Install dependencies
run: sudo npm install -g less
- name: Build with Maven
run: mvn clean package -DskipTests # no need to run tests again
- name: Install Flatpak dependencies
run: |
sudo apt-get install -y flatpak flatpak-builder elfutils
flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak --user -y install flathub org.freedesktop.Platform/x86_64/22.08
flatpak --user -y install flathub org.freedesktop.Sdk/x86_64/22.08
flatpak --user -y install flathub org.freedesktop.Sdk.Compat.i386/x86_64/22.08
flatpak --user -y install flathub org.freedesktop.Sdk.Extension.toolchain-i386/x86_64/22.08
flatpak --user -y install flathub org.freedesktop.Sdk.Extension.openjdk11/x86_64/22.08
flatpak --user -y install flathub org.freedesktop.Platform.Compat.i386/x86_64/22.08
flatpak --user -y install flathub org.freedesktop.Platform.GL32.nvidia-460-39/x86_64/1.4
- name: Build flatpak
run: |
cd phoenicis-dist/src/flatpak
flatpak-builder build-dir org.phoenicis.playonlinux.yml --force-clean
macos-java-11:
name: Mac OS (Java 11)
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- name: Install dependencies
run: sudo npm install -g less
- name: Build with Maven
run: mvn clean package
- name: Create package
run: |
cd phoenicis-dist/src/scripts
bash phoenicis-create-package.sh
#- uses: actions/upload-artifact@v3
# with:
# name: Mac OS
# path: phoenicis-dist/target/packages/*.app
# if-no-files-found: error