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
|
name: Android CI
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main", "compose-refactor" ]
|
branches: [ "main" ]
|
||||||
|
paths-ignore: [ "**.md", "LICENSE", ".gitignore", ".github/ISSUE_TEMPLATE/**", "art/**", "fastlane/**" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
paths-ignore: [ "**.md", "LICENSE", ".gitignore", ".github/ISSUE_TEMPLATE/**", "art/**", "fastlane/**" ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -36,6 +38,12 @@ jobs:
|
||||||
echo ${{ secrets.SIGNING_KEY }} | base64 --decode > ${{ github.workspace }}/key.jks
|
echo ${{ secrets.SIGNING_KEY }} | base64 --decode > ${{ github.workspace }}/key.jks
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Setup Android NDK
|
||||||
|
uses: nttld/setup-ndk@v1.5.0
|
||||||
|
with:
|
||||||
|
ndk-version: r27c
|
||||||
|
# link-to-sdk: true
|
||||||
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew assembleRelease
|
run: ./gradlew assembleRelease
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue