mirror of
https://github.com/AngelAuraMC/angelauramc-openjdk-build.git
synced 2025-09-08 11:50:34 -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:
|
||||
name: "Build for iOS aarch64"
|
||||
runs-on: macOS-latest
|
||||
runs-on: MacStadium
|
||||
continue-on-error: true
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
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
|
||||
run: |
|
||||
export PATH=/opt/homebrew/bin:$PATH
|
||||
export JAVA_HOME=$(/usr/libexec/java_home -v 17)
|
||||
export BUILD_IOS=1
|
||||
bash "ci_build_arch_aarch64.sh"
|
||||
|
||||
|
@ -46,7 +46,11 @@ if [ "$BUILD_IOS" != "1" ]; then
|
||||
ar cru dummy_libs/libthread_db.a
|
||||
else
|
||||
ln -s -f /opt/X11/include/X11 $ANDROID_INCLUDE/
|
||||
ln -s -f /usr/local/include/fontconfig $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/
|
||||
fi
|
||||
platform_args="--with-toolchain-type=clang --with-sysroot=$(xcrun --sdk iphoneos --show-sdk-path) \
|
||||
--with-boot-jdk=$(/usr/libexec/java_home -v 17) \
|
||||
--with-freetype=bundled \
|
||||
|
Loading…
x
Reference in New Issue
Block a user