Skip to content

Commit

Permalink
fix: fix missing debug stripped native libs
Browse files Browse the repository at this point in the history
We can cache the merged debug native libs to speed up ci build.

$ find . -type d -name "arm64-v8a" | grep libs
./app/build/intermediates/merged_native_libs/release/out/lib/arm64-v8a
./app/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/arm64-v8a
./app/build/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out/lib/arm64-v8a
./app/build/intermediates/merged_jni_libs/debug/mergeDebugJniLibFolders/out/arm64-v8a
./app/build/intermediates/stripped_native_libs/release/stripReleaseDebugSymbols/out/lib/arm64-v8a
./app/build/intermediates/stripped_native_libs/release/out/lib/arm64-v8a
./app/build/intermediates/stripped_native_libs/debug/stripDebugDebugSymbols/out/lib/arm64-v8a

$ tree -L 3 app/build/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out/lib
app/build/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out/lib
├── arm64-v8a
│   └── librime_jni.so
├── armeabi-v7a
│   └── librime_jni.so
├── x86
│   └── librime_jni.so
└── x86_64
    └── librime_jni.so

5 directories, 4 files

$ tree -L 3 app/build/intermediates/stripped_native_libs/release/out/lib/
app/build/intermediates/stripped_native_libs/release/out/lib/
├── arm64-v8a
│   └── librime_jni.so
├── armeabi-v7a
│   └── librime_jni.so
├── x86
│   └── librime_jni.so
└── x86_64
    └── librime_jni.so

5 directories, 4 files
  • Loading branch information
Bambooin committed May 16, 2024
1 parent b6f4b27 commit 0798519
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/commit-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
- name: Add JNI cache
if: ${{ !steps.jni-cache.outputs.cache-hit }}
shell: bash
run: cp -R app/build/intermediates/stripped_native_libs/debug/out/lib app/prebuilt
run: cp -R app/build/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out/lib app/prebuilt

- name: Upload APK artifact
uses: actions/upload-artifact@v4
Expand All @@ -103,6 +103,6 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: librime_jni-${{ matrix.os }}
path: app/build/intermediates/stripped_native_libs/debug/out/lib/*
path: app/build/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out/lib/*
# keep 90 days
retention-days: 90
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
- name: Add JNI cache
if: ${{ !steps.jni-cache.outputs.cache-hit }}
shell: bash
run: cp -R app/build/intermediates/stripped_native_libs/debug/out/lib app/prebuilt
run: cp -R app/build/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out/lib app/prebuilt

- name: Upload APK artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 0798519

Please sign in to comment.