-
Notifications
You must be signed in to change notification settings - Fork 11
76 lines (73 loc) · 2.16 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Build OpenJDK for Android
on:
workflow_dispatch:
jobs:
build_android:
strategy:
matrix:
arch: [ "aarch32", "aarch64", "x86", "x86_64" ]
fail-fast: false
name: "Build for Android ${{matrix.arch}}"
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: set up JDK 17
uses: actions/setup-java@main
with:
java-version: 17
distribution: temurin
- name: Install build dependencies
run: |
sudo apt update
sudo apt -y install systemtap-sdt-dev libxtst-dev libasound2-dev libelf-dev libfontconfig1-dev libx11-dev libxext-dev libxrandr-dev libxrender-dev libxtst-dev libxt-dev
- name: Build with CI build script
run: bash "ci_build_arch_${{matrix.arch}}.sh"
- name: Upload JDK build output
uses: actions/upload-artifact@main
with:
name: "jdk17-${{matrix.arch}}"
path: jdk17*.tar.xz
- name: Upload JRE build output
uses: actions/upload-artifact@main
with:
name: 'jre17-${{matrix.arch}}'
path: jre17*.tar.xz
- name: Upload JRE debuginfo build output
uses: actions/upload-artifact@main
with:
name: "jre17-debuginfo-${{matrix.arch}}"
path: dizout
pojav:
needs: build_android
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Get jre17-aarch32
uses: actions/download-artifact@main
with:
name: jre17-aarch32
path: pojav
- name: Get jre17-aarch64
uses: actions/download-artifact@main
with:
name: jre17-aarch64
path: pojav
- name: Get jre17-x86
uses: actions/download-artifact@main
with:
name: jre17-x86
path: pojav
- name: Get jre17-x86_64
uses: actions/download-artifact@main
with:
name: jre17-x86_64
path: pojav
- name: Repack JRE
run: bash "repackjre.sh" $GITHUB_WORKSPACE/pojav $GITHUB_WORKSPACE/pojav/jre17-pojav
- name: Upload artifact
uses: actions/upload-artifact@main
with:
name: jre17-pojav
path: pojav/jre17-pojav/*