-
Notifications
You must be signed in to change notification settings - Fork 82
112 lines (89 loc) · 2.87 KB
/
action.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
102
103
104
105
106
107
108
109
110
111
112
name: build
on:
push:
branches: [ "*" ] # This will trigger the workflow on push to any branch
pull_request:
branches: [ "*" ] # This will trigger the workflow on pull requests to any branch
jobs:
apk:
name: Generate APK
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: '${{ github.ref }}'
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assembleAndroidFdroidRelease -c settings.android.gradle
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: apk
path: '**/*.apk'
package-linux:
name: Package Linux X64
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: '${{ github.ref }}'
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x' # Use the latest version of Python 3
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install lxml
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Package Linux X64 with Gradle
run: ./gradlew -c settings.desktop.gradle packageLinuxX64 --no-configuration-cache
- name: Upload Linux Bundle
uses: actions/upload-artifact@v4
with:
name: linux-bundle
path: 'dist/*' # Adjust this path to match the output of your Linux bundle
package-windows:
name: Package Windows X64
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: '${{ github.ref }}'
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x' # Use the latest version of Python 3
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install lxml
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Package Windows X64 with Gradle
run: ./gradlew -c settings.desktop.gradle packageWinX64 --no-configuration-cache
- name: Upload Windows Bundle
uses: actions/upload-artifact@v4
with:
name: windows-bundle
path: 'dist/*' # Adjust this path to match the output of your Windows bundle