Skip to content

Commit

Permalink
Support android arm/arm64/x86/x64 + change path to upload natives
Browse files Browse the repository at this point in the history
  • Loading branch information
Rongmario committed Feb 11, 2024
1 parent dd90408 commit 994141b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ jobs:
path: output/

android_compile:
strategy:
matrix:
arch: [[armeabi-v7a, arm], [arm64-v8a, arm64], [x86, x86], [x86_64, x64]]
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
Expand All @@ -124,15 +127,15 @@ jobs:
contents: |
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := ImagineBreaker_android_arm64
LOCAL_MODULE := ImagineBreaker_android_${{ env.matrix.arch[1] }}
LOCAL_SRC_FILES := ${{ env.CODE_FILE }}.c
include $(BUILD_SHARED_LIBRARY)
- name: Compile and Link
run: cd ${{ env.PATH_TO_CODE_FOLDER }} && ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=Android.mk APP_PLATFORM=android-21 APP_ABI=arm64-v8a
run: cd ${{ env.PATH_TO_CODE_FOLDER }} && ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=Android.mk APP_PLATFORM=android-21 APP_ABI=${{ env.matrix.arch[0] }}

- name: Upload Natives
uses: actions/upload-artifact@v3
with:
name: native
path: output/
path: src/main/cpp/libs/arm64-v8a

0 comments on commit 994141b

Please sign in to comment.