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:
Eilionoir Tunnicliff 2022-08-17 14:16:11 -04:00 committed by GitHub
parent aa3031316d
commit 04541bd3e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 8 deletions

View File

@ -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"

View File

@ -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 \

View File

@ -27,7 +27,7 @@ findexec jdkout | xargs -- ./termux-elf-cleaner/termux-elf-cleaner
fi
cp jre_override/lib/* jreout/lib/ || true
cp -rv jre_override/lib/* jreout/lib/ || true
cd jreout
tar cJf ../jre17-${TARGET_SHORT}-`date +%Y%m%d`-${JDK_DEBUG_LEVEL}.tar.xz .