Skip to content

Commit

Permalink
fix: android build (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
gengjiawen authored Feb 22, 2023
1 parent 6ad5fc9 commit 370cb05
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/Android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

0 comments on commit 370cb05

Please sign in to comment.