mirror of
https://github.com/AngelAuraMC/angelauramc-openjdk-build.git
synced 2025-09-10 04:37:37 -04:00
Switch to M1 runner for iOS builds (JDK 17) (#11)
* Use M1 runner for JDK compile * Add homebrew to PATH * Fix freetype library location on Apple Silicon * Fix jre_override copy operation
This commit is contained in:
parent
aa3031316d
commit
04541bd3e0
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -38,19 +38,16 @@ jobs:
|
|||||||
|
|
||||||
build_iosport:
|
build_iosport:
|
||||||
name: "Build for iOS aarch64"
|
name: "Build for iOS aarch64"
|
||||||
runs-on: macOS-latest
|
runs-on: MacStadium
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: set up JDK 1.17
|
|
||||||
uses: actions/setup-java@v1
|
|
||||||
with:
|
|
||||||
java-version: 1.17
|
|
||||||
|
|
||||||
- name: Build with CI build script
|
- name: Build with CI build script
|
||||||
run: |
|
run: |
|
||||||
|
export PATH=/opt/homebrew/bin:$PATH
|
||||||
|
export JAVA_HOME=$(/usr/libexec/java_home -v 17)
|
||||||
export BUILD_IOS=1
|
export BUILD_IOS=1
|
||||||
bash "ci_build_arch_aarch64.sh"
|
bash "ci_build_arch_aarch64.sh"
|
||||||
|
|
||||||
|
@ -46,7 +46,11 @@ if [ "$BUILD_IOS" != "1" ]; then
|
|||||||
ar cru dummy_libs/libthread_db.a
|
ar cru dummy_libs/libthread_db.a
|
||||||
else
|
else
|
||||||
ln -s -f /opt/X11/include/X11 $ANDROID_INCLUDE/
|
ln -s -f /opt/X11/include/X11 $ANDROID_INCLUDE/
|
||||||
|
if [ "$(uname -p)" == "arm" ]; then
|
||||||
|
ln -s -f /opt/homebrew/include/fontconfig $ANDROID_INCLUDE/
|
||||||
|
else
|
||||||
ln -s -f /usr/local/include/fontconfig $ANDROID_INCLUDE/
|
ln -s -f /usr/local/include/fontconfig $ANDROID_INCLUDE/
|
||||||
|
fi
|
||||||
platform_args="--with-toolchain-type=clang --with-sysroot=$(xcrun --sdk iphoneos --show-sdk-path) \
|
platform_args="--with-toolchain-type=clang --with-sysroot=$(xcrun --sdk iphoneos --show-sdk-path) \
|
||||||
--with-boot-jdk=$(/usr/libexec/java_home -v 17) \
|
--with-boot-jdk=$(/usr/libexec/java_home -v 17) \
|
||||||
--with-freetype=bundled \
|
--with-freetype=bundled \
|
||||||
|
@ -27,7 +27,7 @@ findexec jdkout | xargs -- ./termux-elf-cleaner/termux-elf-cleaner
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp jre_override/lib/* jreout/lib/ || true
|
cp -rv jre_override/lib/* jreout/lib/ || true
|
||||||
|
|
||||||
cd jreout
|
cd jreout
|
||||||
tar cJf ../jre17-${TARGET_SHORT}-`date +%Y%m%d`-${JDK_DEBUG_LEVEL}.tar.xz .
|
tar cJf ../jre17-${TARGET_SHORT}-`date +%Y%m%d`-${JDK_DEBUG_LEVEL}.tar.xz .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user