feat(ci): 尝试安装 NDK 以减小 APK 体积
顺便支持过滤掉一些不必触发工作流的文件
This commit is contained in:
parent
1932230de3
commit
d41baec795
1 changed files with 9 additions and 1 deletions
10
.github/workflows/android_ci.yml
vendored
10
.github/workflows/android_ci.yml
vendored
|
|
@ -1,9 +1,11 @@
|
|||
name: Android CI
|
||||
on:
|
||||
push:
|
||||
branches: [ "main", "compose-refactor" ]
|
||||
branches: [ "main" ]
|
||||
paths-ignore: [ "**.md", "LICENSE", ".gitignore", ".github/ISSUE_TEMPLATE/**", "art/**", "fastlane/**" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
paths-ignore: [ "**.md", "LICENSE", ".gitignore", ".github/ISSUE_TEMPLATE/**", "art/**", "fastlane/**" ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
|
@ -36,6 +38,12 @@ jobs:
|
|||
echo ${{ secrets.SIGNING_KEY }} | base64 --decode > ${{ github.workspace }}/key.jks
|
||||
fi
|
||||
|
||||
- name: Setup Android NDK
|
||||
uses: nttld/setup-ndk@v1.5.0
|
||||
with:
|
||||
ndk-version: r27c
|
||||
# link-to-sdk: true
|
||||
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew assembleRelease
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue