mirror of
https://github.com/AngelAuraMC/angelauramc-openjdk-build.git
synced 2025-09-14 14:46:13 -04:00
Feat: setup ndk separated
This commit is contained in:
parent
c60148a285
commit
5bdae2f735
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -74,7 +74,7 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Setup ndk
|
- name: Setup ndk
|
||||||
run: bash ""
|
run: bash "setupndk.sh"
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Get jre17-aarch32
|
- name: Get jre17-aarch32
|
||||||
|
@ -8,9 +8,7 @@ if [ "$BUILD_IOS" != "1" ]; then
|
|||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt -y install autoconf python unzip zip
|
sudo apt -y install autoconf python unzip zip
|
||||||
|
|
||||||
wget -nc -nv -O android-ndk-$NDK_VERSION-linux-x86_64.zip "https://dl.google.com/android/repository/android-ndk-$NDK_VERSION-linux-x86_64.zip"
|
./setupndk.sh
|
||||||
./extractndk.sh
|
|
||||||
./maketoolchain.sh
|
|
||||||
else
|
else
|
||||||
chmod +x ios-arm64-clang
|
chmod +x ios-arm64-clang
|
||||||
chmod +x ios-arm64-clang++
|
chmod +x ios-arm64-clang++
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
unzip -q android-ndk-$NDK_VERSION-linux-x86_64.zip
|
|
9
setupndk.sh
Normal file
9
setupndk.sh
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
set -e
|
||||||
|
|
||||||
|
#Setup the ndk according to the selected version
|
||||||
|
|
||||||
|
wget -nc -nv -O android-ndk-$NDK_VERSION-linux-x86_64.zip "https://dl.google.com/android/repository/android-ndk-$NDK_VERSION-linux-x86_64.zip"
|
||||||
|
|
||||||
|
unzip -q android-ndk-$NDK_VERSION-linux-x86_64.zip
|
||||||
|
|
||||||
|
./maketoolchain.sh
|
Loading…
x
Reference in New Issue
Block a user