Upload mapping and native debug symbols

This commit is contained in:
vvb2060 2022-09-14 22:59:12 +08:00 committed by John Wu
parent b505819ca2
commit 9279f30e89
4 changed files with 17 additions and 5 deletions

View File

@ -89,6 +89,9 @@ jobs:
run: |
python build.py -v all
- name: Stop gradle daemon
run: ./gradlew --stop
# Only upload artifacts built on Linux
- name: Upload build artifact
if: runner.os == 'Linux'
@ -96,3 +99,10 @@ jobs:
with:
name: ${{ github.sha }}
path: out
- name: Upload mapping and native debug symbols
if: runner.os == 'Linux'
uses: actions/upload-artifact@v3
with:
name: ${{ github.sha }}-symbols
path: app/build/outputs

View File

@ -26,7 +26,10 @@ android {
vectorDrawables.useSupportLibrary = true
versionName = Config.version
versionCode = Config.versionCode
ndk.abiFilters += listOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64")
ndk {
abiFilters += listOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64")
debugSymbolLevel = "FULL"
}
}
buildTypes {
@ -54,9 +57,6 @@ android {
excludes += "/*.bin"
excludes += "/*.json"
}
jniLibs {
keepDebugSymbols += "**/*.so"
}
}
}

View File

@ -58,11 +58,13 @@ ifdef B_PRELOAD
include $(CLEAR_VARS)
LOCAL_MODULE := init-ld
LOCAL_SRC_FILES := init/preload.c
LOCAL_STRIP_MODE := --strip-all
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := zygisk-ld
LOCAL_SRC_FILES := zygisk/loader.c
LOCAL_STRIP_MODE := --strip-all
include $(BUILD_SHARED_LIBRARY)
endif

View File

@ -6,7 +6,7 @@ APP_CPPFLAGS := -std=c++20
APP_STL := none
APP_PLATFORM := android-23
APP_THIN_ARCHIVE := true
APP_STRIP_MODE := --strip-all
APP_STRIP_MODE := none
# Busybox should use stock libc.a
ifdef B_BB