Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aarch64 #1

Open
wants to merge 443 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
443 commits
Select commit Hold shift + click to select a range
5c57b67
Update buildjdk.sh
khanhduytran0 Oct 23, 2020
c6d4fb2
Hack to get char16_t and char32_t available
khanhduytran0 Oct 23, 2020
2cf38d7
Update buildjdk.sh
khanhduytran0 Oct 23, 2020
14267fa
Update buildjdk.sh
khanhduytran0 Oct 23, 2020
a431fa4
Update buildjdk.sh
khanhduytran0 Oct 24, 2020
71e6add
_ to -
khanhduytran0 Oct 24, 2020
1f1cd47
Update
khanhduytran0 Oct 24, 2020
5d0db83
LE_STANDALONE
khanhduytran0 Oct 24, 2020
68345bb
-DHEADLESS=1 again
khanhduytran0 Oct 24, 2020
c9e1ea0
wtf headless mode restricted
khanhduytran0 Oct 24, 2020
7edc4fd
Guessing the JDK output dir
khanhduytran0 Oct 25, 2020
f9ea694
Use tree command instead of bunch of ls commands
khanhduytran0 Oct 25, 2020
f3bd852
Use correct output j2re-image
khanhduytran0 Oct 25, 2020
7521bdb
Update removejdkdebuginfo.sh
khanhduytran0 Oct 25, 2020
110c6e0
Add path to libc++_static.a
khanhduytran0 Oct 26, 2020
6dee1bd
remove unnecessary link dir
khanhduytran0 Oct 26, 2020
61cfd5c
Update .gitignore
khanhduytran0 Oct 26, 2020
2551821
Build fastdebug
khanhduytran0 Oct 27, 2020
66a369a
Forget to $JDK_DEBUG_LEVEL
khanhduytran0 Oct 27, 2020
d84bc3b
Update ci_build_global.sh
khanhduytran0 Oct 27, 2020
5768198
Update removejdkdebuginfo.sh
khanhduytran0 Oct 28, 2020
c653630
Trigger ci
WesleyVanNeck Oct 29, 2020
82e47ad
Trigger ci
WesleyVanNeck Oct 29, 2020
b407bc2
[Trigger CI] Try to build jdk8u272b10
khanhduytran0 Oct 30, 2020
fce8176
try NDK r18
khanhduytran0 Oct 31, 2020
7933c77
Fix
khanhduytran0 Oct 31, 2020
3b36ce1
Update buildlibs.sh
khanhduytran0 Oct 31, 2020
8b2612c
Use NDK r17
khanhduytran0 Oct 31, 2020
70d8b94
Speed up OpenJDK clone time
khanhduytran0 Nov 1, 2020
4284a96
Use NDK r10e
khanhduytran0 Nov 1, 2020
c11eda2
NDK r10e: Add missing sys/procfs.h include
khanhduytran0 Nov 1, 2020
a24357b
Fix it
khanhduytran0 Nov 1, 2020
6530fad
Build use NDK r10e only
khanhduytran0 Nov 2, 2020
6b72d81
Trigger CI, old one is being used public
khanhduytran0 Nov 2, 2020
d5fa6c1
Update setdevkitpath.sh
khanhduytran0 Nov 3, 2020
2f0b3ce
Update setdevkitpath.sh
khanhduytran0 Nov 3, 2020
535d686
Attempt: replace freetype 2.6.2 with 2.10.0
artdeell Nov 3, 2020
ac093dc
fix a tiny mestake
WesleyVanNeck Nov 3, 2020
a5a5e68
Fix the fix
artdeell Nov 3, 2020
256d398
Fix the fix №2
artdeell Nov 3, 2020
acd721c
fix the fix fix
WesleyVanNeck Nov 3, 2020
aa1fe2c
revert
WesleyVanNeck Nov 3, 2020
3e06a0c
disable RTTI for freetype
artdeell Nov 3, 2020
3db5841
Remove -lstdc++ link on any libs
khanhduytran0 Nov 3, 2020
460d1a7
More convenient to change Freetype version
khanhduytran0 Nov 3, 2020
e2f7816
Update buildjdk.sh
khanhduytran0 Nov 3, 2020
9fe3099
Allow pack debugging .diz files
khanhduytran0 Nov 4, 2020
db2c83f
Merge branch 'buildjre8' of https://github.com/PojavLauncherTeam/andr…
khanhduytran0 Nov 4, 2020
7533d7f
Disable debug
khanhduytran0 Nov 4, 2020
472c486
Try Google fork of Freetype
khanhduytran0 Nov 7, 2020
8f1cb03
Update to FreeType 2.10.4
khanhduytran0 Nov 7, 2020
4985b2f
Back
khanhduytran0 Nov 7, 2020
6b2e859
Build OpenJDK in slowdebug
khanhduytran0 Nov 9, 2020
576eaca
Enable debug files
khanhduytran0 Nov 9, 2020
77c2dc9
Back to release mode because full debug symbol.diz
khanhduytran0 Nov 9, 2020
4027e94
Keep only libfontmanager.diz
khanhduytran0 Nov 9, 2020
092b277
Remove libjvm.diz
khanhduytran0 Nov 9, 2020
edd767c
Auto find and remove libjvm.diz
khanhduytran0 Nov 9, 2020
b2aca4e
Update README.md
khanhduytran0 Nov 10, 2020
c225225
Add fonts
khanhduytran0 Nov 22, 2020
d9955cd
Update tarjdk.sh
khanhduytran0 Nov 23, 2020
9559013
Update tarjdk.sh
khanhduytran0 Nov 24, 2020
619cba3
trigger rerun
artdeell Jan 6, 2021
b7d0013
Update README.md
WesleyVanNeck Jan 6, 2021
eb65f3e
Update ci_build_arch_aarch32.sh
khanhduytran0 Jan 15, 2021
2c411a0
aarch32 instead of arm maybe?
khanhduytran0 Jan 15, 2021
9fd17f1
Update buildjdk.sh
khanhduytran0 Jan 15, 2021
c767953
Update ci_build_arch_aarch32.sh
artdeell Jan 22, 2021
295de4e
Update ci_build_arch_aarch32.sh
artdeell Jan 22, 2021
64e06e1
test
WesleyVanNeck Jan 22, 2021
5adef92
Update ci_build_global.sh
WesleyVanNeck Jan 22, 2021
e714d64
Update ci_build_global.sh
WesleyVanNeck Jan 22, 2021
f4dfa54
Update ci_build_global.sh
WesleyVanNeck Jan 22, 2021
15c669a
Update buildjdk.sh
artdeell Jan 22, 2021
6bbfccc
Update ci_build_arch_aarch32.sh
khanhduytran0 Jan 22, 2021
951046f
Uncomment aarch32
khanhduytran0 Jan 22, 2021
7bee14e
Update buildjdk.sh
khanhduytran0 Jan 22, 2021
00cd21c
[aarch32] build as client variant
khanhduytran0 Jan 22, 2021
cbc60b4
Update buildjdk.sh
khanhduytran0 Jan 22, 2021
04f9014
[aarch32] Fix JVM variants
khanhduytran0 Jan 22, 2021
60e8f3e
Disable Shenandoah GC
khanhduytran0 Jan 23, 2021
ce832b0
Update buildjdk.sh
artdeell Jan 23, 2021
290fca5
Add custom “ DONT_COMPILE_SHENANDOAH”
khanhduytran0 Jan 23, 2021
5279027
Disable Shenandoah for all archs
khanhduytran0 Jan 23, 2021
f362aff
Update clonejdk.sh
artdeell Jan 23, 2021
9bc8982
Update clonejdk.sh
artdeell Jan 23, 2021
03a3bdb
Update clonejdk.sh
artdeell Jan 23, 2021
975741a
Update ci_build_arch_aarch32.sh
artdeell Jan 23, 2021
656c6ce
Update ci_build_arch_aarch32.sh
artdeell Jan 23, 2021
16ec43a
Fix copy build result
khanhduytran0 Jan 23, 2021
4285982
Update buildjdk.sh
artdeell Jan 23, 2021
7448890
Update buildjdk.sh
artdeell Jan 23, 2021
f79475d
Update buildjdk.sh
artdeell Jan 23, 2021
c786cfa
Update buildjdk.sh
artdeell Jan 24, 2021
ac48c1f
Set OBJCOPY
khanhduytran0 Jan 24, 2021
b63e670
Fix upload aarch32
khanhduytran0 Jan 24, 2021
142df77
Stills fixing target upload
khanhduytran0 Jan 25, 2021
bcf7397
Update buildjdk.sh
artdeell Jan 30, 2021
8e59694
Update buildjdk.sh
artdeell Jan 30, 2021
779d5c0
Also upload jdk for anyone need it
khanhduytran0 Feb 19, 2021
b8aa234
Fix
khanhduytran0 Feb 19, 2021
4209d3f
Changes
khanhduytran0 Mar 17, 2021
56589a7
Update removejdkdebuginfo.sh
khanhduytran0 Mar 17, 2021
f1be80c
Separate files
khanhduytran0 Mar 17, 2021
7e14851
Set --enable-arm-neon=always
khanhduytran0 Apr 7, 2021
1de27a9
Use termux-elf-cleaner
khanhduytran0 Apr 7, 2021
c0bc5d4
Update buildjdk.sh
khanhduytran0 Apr 7, 2021
f0267bb
Update build.yml
khanhduytran0 Apr 7, 2021
e1e1383
Update tarjdk.sh
khanhduytran0 Apr 7, 2021
60e0179
Fix termux-elf-cleaner
Google-61 Apr 9, 2021
5d35791
Trigger ci
Google-61 Apr 9, 2021
9679450
The damn parenthese
Google-61 Apr 9, 2021
2086ec1
Merge pull request #2 from Google61/buildjre8
khanhduytran0 Apr 10, 2021
c0348dc
Repack JRE as PojavLauncher compatible tarballs
Google-61 Apr 19, 2021
c2c38c4
Something that I forgot
Google-61 Apr 19, 2021
b01d652
Make 'pojav' job wait 'build' completion
Google-61 Apr 19, 2021
76229f9
Fix few strings
Google-61 Apr 19, 2021
e7a61fe
Create repackjre.sh
Google-61 Apr 19, 2021
59f0806
Update build.yml
Google-61 Apr 19, 2021
58e9b6d
Update build.yml
Google-61 Apr 20, 2021
047feff
Update repackjre.sh
Google-61 Apr 20, 2021
15a57e9
Update repackjre.sh
Google-61 Apr 20, 2021
9da0f4d
Update repackjre.sh
Google-61 Apr 20, 2021
b6133c5
Merge pull request #3 from Google61/buildjre8
khanhduytran0 Apr 20, 2021
0bd01c9
Working on iOS
May 1, 2021
1e526ef
GitHub, I was on my fork.
May 1, 2021
104c27f
Update getlibs.sh
khanhduytran0 May 7, 2021
201c909
Update build.yml
khanhduytran0 May 7, 2021
d5385ad
Update README.md
khanhduytran0 May 13, 2021
f650380
Update README.md
khanhduytran0 May 13, 2021
e52446b
iOS aarch64 port of OpenJDK 8 (#5)
khanhduytran0 May 15, 2021
124564a
Update README.md
khanhduytran0 May 15, 2021
c4ef639
Fixed building on macOS Big Sur
khanhduytran0 May 16, 2021
c04b8da
Fixed building for Android aarch32
khanhduytran0 May 18, 2021
f9594f3
Set debug level to slowdebug for iOS port
khanhduytran0 May 18, 2021
836cee5
Update README.md
khanhduytran0 May 18, 2021
a7c6c8f
prefix?
khanhduytran0 May 24, 2021
d2b48f7
fixed signing, missing ldid
khanhduytran0 May 24, 2021
52df731
[iOS build] change back to release
khanhduytran0 May 24, 2021
6ba695d
Trigger Ci
khanhduytran0 May 25, 2021
89b7b6f
Update buildjdk.sh
khanhduytran0 May 31, 2021
c073c8c
fix iOS build
khanhduytran0 May 31, 2021
a126491
[iOS port] re-enable zip debuginfo
khanhduytran0 May 31, 2021
23a4f6a
“fine crashes” bring iOS one back to slowdebug
khanhduytran0 May 31, 2021
0853c97
Update buildjdk.sh
khanhduytran0 Jun 6, 2021
aac0f12
Update buildjdk.sh
khanhduytran0 Jun 6, 2021
cd4c133
Give me gcc version to fake it
khanhduytran0 Jun 9, 2021
9bcdff9
undo
khanhduytran0 Jun 9, 2021
3ce6499
Update setdevkitpath.sh
khanhduytran0 Jun 9, 2021
4256467
Update setdevkitpath.sh
khanhduytran0 Jun 9, 2021
e9f8d76
Update setdevkitpath.sh
khanhduytran0 Jun 9, 2021
952f29e
Update setdevkitpath.sh
khanhduytran0 Jun 9, 2021
4b306d4
Update ci_build_global.sh
khanhduytran0 Jun 9, 2021
bacb513
fi
khanhduytran0 Jun 9, 2021
543bdba
Update ci_build_global.sh
khanhduytran0 Jun 9, 2021
8145198
Auto install python and unzip
khanhduytran0 Jun 10, 2021
96dca79
Update ci_build_global.sh
khanhduytran0 Jun 10, 2021
04bff01
diz -> debuginfo
khanhduytran0 Jun 11, 2021
c843ad9
Update removejdkdebuginfo.sh
khanhduytran0 Jun 11, 2021
e7b75ee
zulu port test
khanhduytran0 Jun 30, 2021
232366e
Set JDK_DEBUG_LEVEL back to release for iOS build
khanhduytran0 Jun 30, 2021
a28d6dc
Add RPATH to dylib
khanhduytran0 Jul 1, 2021
1403b9b
Delete ios_fixpath.sh
khanhduytran0 Jul 1, 2021
3e750d4
Add RPATH for JDK
khanhduytran0 Jul 2, 2021
3d922ad
Update removejdkdebuginfo.sh
khanhduytran0 Jul 2, 2021
24aa418
uh forgot to sign jdk binaries
khanhduytran0 Jul 2, 2021
5012ccb
Update buildjdk.sh
Jul 4, 2021
6660d15
Undo as looking deeper shows that we don't need to rearrange into sub…
Jul 4, 2021
315532c
Fix libfreetype RPATH
khanhduytran0 Jul 12, 2021
cb98e15
:trollface:
khanhduytran0 Jul 27, 2021
2d73796
sudo bruh
khanhduytran0 Jul 27, 2021
4d5a2da
jdk8-iOS-aarch64 is corrupted
khanhduytran0 Jul 30, 2021
e40606c
Update README.md
khanhduytran0 Aug 1, 2021
628c80f
Test -Ofast flag
khanhduytran0 Aug 11, 2021
d292a64
Test -Os flag
Mathias-Boulay Aug 19, 2021
368043b
Modify jre repacker to pack release file with platform-dependent bina…
artdeell Aug 19, 2021
2ee07c0
now release is arch dependent
Google-61 Aug 19, 2021
58e9789
Merge pull request #6 from Google61/buildjre8
artdeell Aug 19, 2021
ce0b96d
Update buildjdk.sh
artdeell Aug 20, 2021
df5731e
Update build.yml
artdeell Aug 20, 2021
1e1f360
Update buildjdk.sh
artdeell Aug 21, 2021
083691c
Update buildjdk.sh
artdeell Aug 21, 2021
b147395
Attempt to enable precompiled headers for iOS
khanhduytran0 Aug 21, 2021
c3af3a2
Only compile with `-O3` flag for Android
khanhduytran0 Aug 24, 2021
89dc0df
Build both server, zero for iOS
khanhduytran0 Sep 21, 2021
f1fda53
Update buildjdk.sh
khanhduytran0 Sep 21, 2021
3a29a57
Update buildjdk.sh
khanhduytran0 Sep 21, 2021
13506dd
Update setdevkitpath.sh
khanhduytran0 Sep 21, 2021
6178b81
Update setdevkitpath.sh
Jan 9, 2022
01507ae
Update build.yml
khanhduytran0 Apr 9, 2022
9539996
iOS build: set platform_version for LDFLAGS
khanhduytran0 Apr 26, 2022
31b66be
Update buildjdk.sh
khanhduytran0 Apr 26, 2022
b0904da
iOS build: set LDFLAGS -miphoneos-version-min
khanhduytran0 Apr 29, 2022
bdc4a42
JRE 8 but *smol* (#7)
Mathias-Boulay May 14, 2022
0e0b7ed
Put back ext jars
Mathias-Boulay May 15, 2022
33b9683
Temp remove the packer200
Mathias-Boulay May 31, 2022
450da75
Update repackjre.sh
Mathias-Boulay May 31, 2022
65e4d69
Re-add jar compression
Mathias-Boulay Jun 3, 2022
0c1601a
Update repackjre.sh
Mathias-Boulay Aug 31, 2022
b0f46f0
Update setdevkitpath.sh
Mathias-Boulay Aug 31, 2022
fa929ec
Update termux-elf-cleaner building process
khanhduytran0 Aug 31, 2022
3c4f9b3
Update tarjdk.sh
khanhduytran0 Aug 31, 2022
3e1521f
Hopefully fix repackjre
khanhduytran0 Sep 8, 2022
4bd9c41
remove man folder
Mathias-Boulay Sep 8, 2022
fad7a35
Update repackjre.sh
Mathias-Boulay Sep 25, 2022
946b5b4
Change XZ compression level to 6 for older devices
artdeell Nov 12, 2022
51be07d
(Test) Live patch latest jdk8u
khanhduytran0 Feb 19, 2023
edf2022
Add needed flags for git apply
khanhduytran0 Feb 19, 2023
f32176a
Fix patch location
khanhduytran0 Feb 19, 2023
c7407f6
Update buildjdk.sh
khanhduytran0 Feb 19, 2023
817fc68
Patch: skip building demo/libwaiters.so
khanhduytran0 Feb 19, 2023
14f2981
Build for aarch32 using its repo
khanhduytran0 Feb 19, 2023
ab0aec8
Fix forgotten bracket in architecture matrix
artdeell Feb 24, 2023
b3042ae
Forcefully define __ANDROID__
artdeell Feb 24, 2023
4a07e97
Use aarch32 port for aarch32 and base jdk8u otherwise
artdeell Feb 24, 2023
90d461f
Separate universal and main non universal patches
artdeell Feb 24, 2023
1a5ab53
Fix missing semicolon
artdeell Feb 24, 2023
09606a9
Update buildjdk.sh
artdeell Feb 24, 2023
6367c75
Add nedline at the end of patch
artdeell Feb 24, 2023
65cfcff
Add aarch32 patches
artdeell Feb 24, 2023
17e0a04
Fix aarch32 patches
artdeell Feb 24, 2023
7039d84
Add patch for AWT_OnLoad path
artdeell Feb 24, 2023
1c68e6e
Whoops! Forgot to check full history!
artdeell Feb 24, 2023
8886444
Final(?) patch fix
artdeell Feb 24, 2023
3705aad
Build client JVM variant for x86
artdeell Apr 15, 2023
2a6e4a0
Nvm
artdeell Apr 15, 2023
e058dd4
Build client JVM for x86
artdeell Apr 15, 2023
4797b35
Enable generating debug symbols again
khanhduytran0 Apr 15, 2023
6cbc570
Uplaod the page trap fix patch
artdeell Apr 16, 2023
6d6dddb
Update buildjdk.sh
artdeell Apr 16, 2023
c27fe84
allow to debug the container when it fails
Mathias-Boulay May 1, 2023
c99a8b8
Fix: debug only on failure
Mathias-Boulay May 1, 2023
38b4ceb
Update setdevkitpath.sh
artdeell May 1, 2023
58b97dd
Update setdevkitpath.sh
artdeell May 1, 2023
b221787
Feat: Reduce JRE 8 size by around 3 MB (#15)
Mathias-Boulay May 4, 2023
c92ce2a
Fix libfreetype paths for x86
artdeell Jul 20, 2023
072f195
Chore[clone]: change upstream repository
Mathias-Boulay Aug 13, 2023
438cd12
Refactor: use patch instead of fork
Mathias-Boulay Aug 13, 2023
11a8b4b
Schedule build
khanhduytran0 Nov 16, 2023
a753e0e
buildjre8: improvements (#19)
fukiame Jan 16, 2024
90b3327
Feat: use corretto-8 for iOS
khanhduytran0 Jul 21, 2024
45892bf
Build: adjustment for iOS CI
khanhduytran0 Jul 22, 2024
ccc0091
Fix[ios build]: remove unexpected check
khanhduytran0 Jul 22, 2024
fc16e1d
Fix[tarjdk]: force-copy instead of using sudo
khanhduytran0 Jul 22, 2024
29af9b0
Build: update ios ci actions ver
khanhduytran0 Jul 22, 2024
65bd51b
workaround: libnet: ipv6_support: skip /proc/net/ & socket() check if…
nexplorer-3e Jul 27, 2024
30c346a
Build[ios]: define boot jdk distribution
khanhduytran0 Aug 2, 2024
c62cba0
Build[CI]: use boot jdk 8
khanhduytran0 Aug 2, 2024
a3d27d7
Fix(iOS): apply script changes from jre17-21 branch
khanhduytran0 Nov 30, 2024
c8f90f5
Fix(iOS): fix freetype build
Nov 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 114 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,126 @@
name: Build JDK for ARM
name: Build OpenJDK 8 for Android

on: [push]
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 1 */2 *'

jobs:
build:
runs-on: ubuntu-18.04
build_android:
strategy:
matrix:
arch: [ "aarch32", "aarch64", "x86", "x86_64" ]
fail-fast: false

name: "Build for Android ${{matrix.arch}}"
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: set up JDK 1.7
uses: actions/setup-java@v4
with:
java-version: 8
distribution: zulu
- name: Install build dependencies
run: |
sudo apt update
sudo apt -y install autoconf python3 python-is-python3 unzip zip systemtap-sdt-dev gcc-multilib g++-multilib libxtst-dev libasound2-dev libelf-dev libfontconfig1-dev libx11-dev
- name: Build with CI build script
run: bash "ci_build_arch_${{matrix.arch}}.sh"
- name: Upload JDK build output
uses: actions/upload-artifact@v4
with:
name: "jdk8-${{matrix.arch}}"
path: jdk8*.tar.xz

- name: Setup tmate session if failed
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3

- name: Upload JRE build output
uses: actions/upload-artifact@v4
with:
name: 'jre8-${{matrix.arch}}'
path: jre8*.tar.xz
- name: Upload JRE debuginfo build output
uses: actions/upload-artifact@v4
with:
name: "jre8-debuginfo-${{matrix.arch}}"
path: dizout

build_iosport:
name: "Build for iOS aarch64"
runs-on: MacStadium
continue-on-error: true
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: 1.8
java-version: 8
distribution: zulu

- name: Build with CI build script
run: ./ci_build.sh
run: |
export BUILD_IOS=1
#brew install awk
#echo "/opt/procursus/bin:/opt/procursus/local/bin:/Users/eilionoir/.local/bin:/opt/homebrew/bin:/Users/eilionoir/Library/Python/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Apple/usr/bin:/opt/procursus/games" > $GITHUB_PATH
export PATH=/opt/procursus/bin:/opt/homebrew/bin:$PATH
bash "ci_build_arch_aarch64.sh"

- name: Upload build output
uses: actions/upload-artifact@v1
- name: Upload JDK build output
uses: actions/upload-artifact@v4
with:
name: "jdk8-ios-aarch64"
path: jdk8*.tar.xz

- name: Upload JRE build output
uses: actions/upload-artifact@v4
with:
name: 'jre8-ios-aarch64'
path: jre8*.tar.xz

- name: Upload JRE debuginfo build output
uses: actions/upload-artifact@v4
with:
name: "jre8-ios-debuginfo-aarch64"
path: dizout

pojav:
needs: build_android
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get jre8-aarch32
uses: actions/download-artifact@v4
with:
name: jre8-aarch32
path: pojav
- name: Get jre8-aarch64
uses: actions/download-artifact@v4
with:
name: jre8-aarch64
path: pojav
- name: Get jre8-x86
uses: actions/download-artifact@v4
with:
name: jre8-x86
path: pojav
- name: Get jre8-x86_64
uses: actions/download-artifact@v4
with:
name: jre8-x86_64
path: pojav
- name: Repack JRE
run: bash "repackjre.sh" $GITHUB_WORKSPACE/pojav $GITHUB_WORKSPACE/pojav/jre8-pojav
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: jre
path: jre.tar.xz
name: jre8-pojav
path: pojav/jre8-pojav/*
23 changes: 15 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
cups-2.2.4-source.tar.gz
freetype-2.6.2.tar.bz2
cups-2.2.4
freetype-2.6.2
freetype-2.6.2-x86
jdk-9.0.4
cups-*-source.tar.gz
freetype-*.tar.gz
freetype-*
cups-*
dummy_libs
freetype-*-x86
jdk1.8.0_*
openjdk
android-ndk-r10e
android-ndk-r10e-linux-x86_64.zip
android-ndk-r*
jre.tar.xz
jreout
.DS_Store
.idea
ios-missing-include/cups
ios-missing-include/X11
ios-missing-include/Xm
dizout
jreout
jdkout
82 changes: 82 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# mobile-openjdk8-build-multiarch

Based on http://openjdk.java.net/projects/mobile/android.html

## Building

### Setup
#### Android
- Download Android NDK r10e from https://developer.android.com/ndk/downloads/older_releases.html and place it in this directory (Can't automatically download because of EULA)
- **Warning**: Do not attempt to build use newer or older NDK, it will lead to compilation errors.

#### iOS
- You should get latest Xcode (tested with Xcode 12).

### Platform and architecture specific environment variables
<table>
<thead>
<tr>
<th></th>
<th align="center" colspan="7">Environment variables</th>
</tr>
<tr>
<th>Platform - Architecture</th>
<th align="center">TARGET</th>
<th align="center">TARGET_JDK</th>
</tr>
</thead>
<tbody>
<tr>
<td>Android - armv8/aarch64</td>
<td align="center">aarch64-linux-android</td>
<td align="center">aarch64</td>
</tr>
<tr>
<td>Android - armv7/aarch32</td>
<td align="center">arm-linux-androideabi</td>
<td align="center">arm</td>
</tr>
<tr>
<td>Android - x86/i686</td>
<td align="center">i686-linux-android</td>
<td align="center">x86</td>
</tr>
<tr>
<td>Android - x86_64/amd64</td>
<td align="center">x86_64-linux-android</td>
<td align="center">x86_64</td>
</tr>
<tr>
<td>iOS/iPadOS - armv8/aarch64</td>
<td align="center">aarch64-macos-ios</td>
<td align="center">aarch64</td>
</tr>
</tbody>
</table>

### Run in this directory:
```
export BUILD_IOS=1 # only when targeting iOS, default is 0 (target Android)

export BUILD_FREETYPE_VERSION=[2.6.2/.../2.10.4] # default: 2.10.4
export JDK_DEBUG_LEVEL=[release/fastdebug/debug] # default: release
export JVM_VARIANTS=[client/server] # default: client (aarch32), server (other architectures)

# Setup NDK, run once (Android only)
./extractndk.sh
./maketoolchain.sh

# Get CUPS, Freetype and build Freetype
./getlibs.sh
./buildlibs.sh

# Clone JDK, run once
./clonejdk.sh

# Configure JDK and build, if no configuration is changed, run makejdkwithoutconfigure.sh instead
./buildjdk.sh

# Pack the built JDK
./removejdkdebuginfo.sh
./tarjdk.sh
```
22 changes: 0 additions & 22 deletions README.txt

This file was deleted.

Loading