Feat: setup ndk separated

This commit is contained in:
Boulay Mathias 2023-05-03 18:12:36 +02:00 committed by GitHub
parent c60148a285
commit 5bdae2f735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 6 deletions

View File

@ -74,7 +74,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Setup ndk
run: bash ""
run: bash "setupndk.sh"
- name: Checkout repository
uses: actions/checkout@v2
- name: Get jre17-aarch32

View File

@ -8,9 +8,7 @@ if [ "$BUILD_IOS" != "1" ]; then
sudo apt update
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"
./extractndk.sh
./maketoolchain.sh
./setupndk.sh
else
chmod +x ios-arm64-clang
chmod +x ios-arm64-clang++

View File

@ -1,2 +0,0 @@
#!/bin/sh
unzip -q android-ndk-$NDK_VERSION-linux-x86_64.zip

9
setupndk.sh Normal file
View 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