From 370cb05fcabdb9e8ff26c4d013c91ed33c2e4661 Mon Sep 17 00:00:00 2001 From: Jiawen Geng Date: Wed, 22 Feb 2023 21:49:37 +0800 Subject: [PATCH] fix: android build (#189) --- .github/workflows/Android.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Android.yml b/.github/workflows/Android.yml index 83ebabb..20f71b7 100644 --- a/.github/workflows/Android.yml +++ b/.github/workflows/Android.yml @@ -5,15 +5,16 @@ on: [push, pull_request] jobs: build-android: runs-on: ubuntu-latest - container: reactnativecommunity/react-native-android:3.2 + container: reactnativecommunity/react-native-android:7.0 steps: - uses: actions/checkout@v2 - name: Envinfo run: npx envinfo - name: Build android arm64 # see build options you can use in https://developer.android.com/ndk/guides/cmake + # quickly debug on your local docker + # docker run -it -v $PWD:/pwd reactnativecommunity/react-native-android:7.0 bash run: | - apt update && apt install python3-pip -y && pip3 install cmake mkdir build && cd build - cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI="arm64-v8a" -DANDROID_PLATFORM=android-21 .. + cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_GRADLE/build/cmake/android.toolchain.cmake -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI="arm64-v8a" -DANDROID_PLATFORM=android-21 .. cmake --build .