-
Notifications
You must be signed in to change notification settings - Fork 20
57 lines (43 loc) · 1.26 KB
/
build.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
name: Build CI
on: [push]
jobs:
run_tests:
runs-on: ubuntu-latest
container:
image: eclipse-temurin:17
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Run unit tests
run: ./gradlew core:test
build_desktop:
runs-on: ubuntu-latest
container:
image: eclipse-temurin:17
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Build Desktop
run: ./gradlew lwjgl3:jar
- name: Upload desktop jar
uses: actions/upload-artifact@v3
with:
name: Desktop jar
path: ./lwjgl3//build/libs/*.jar
build_android:
runs-on: ubuntu-latest
container:
# trying to be close to the f-droid build to detect failures early
image: registry.gitlab.com/fdroid/fdroidserver:buildserver-bookworm
env:
ANDROID_HOME: /opt/android-sdk
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Build Android
run: ./gradlew android:assembleRelease
- name: Upload Android apk
uses: actions/upload-artifact@v3
with:
name: Android apk
path: ./android/build/outputs/apk/release/android-release-unsigned.apk