Skip to content

Commit

Permalink
Write file normally
Browse files Browse the repository at this point in the history
  • Loading branch information
Rongmario committed Feb 11, 2024
1 parent e89acc1 commit 8682d71
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,14 @@ jobs:
ndk-version: r25c

- name: Create Android MakeFile
uses: DamianReeves/write-file-action@master
with:
path: ${{ env.PATH_TO_CODE_FOLDER }}/Android.mk
write-mode: overwrite
contents: |
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := ImagineBreaker_android_${{ env.matrix.arch[1] }}
LOCAL_SRC_FILES := ${{ env.CODE_FILE }}.c
include $(BUILD_SHARED_LIBRARY)
run:
cat << EOF > ${{ env.PATH_TO_CODE_FOLDER }}/Android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := ImagineBreaker_android_${{ env.matrix.arch[1] }}
LOCAL_SRC_FILES := ${{ env.CODE_FILE }}.c
include $(BUILD_SHARED_LIBRARY)
EOF

- 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=${{ env.matrix.arch[0] }}
Expand Down

0 comments on commit 8682d71

Please sign in to comment.