perf: gradle build

This commit is contained in:
lisonge 2024-07-16 21:12:10 +08:00
parent f0e9a538e5
commit 52094e48bc
3 changed files with 9 additions and 25 deletions

View File

@ -32,28 +32,18 @@ jobs:
echo GKD_KEY_PASSWORD='${{ secrets.GKD_KEY_PASSWORD }}' >> gradle.properties
- run: chmod 777 ./gradlew
- run: ./gradlew app:assemble
- run: ./gradlew app:assembleRelease
- uses: actions/upload-artifact@v4
with:
name: outputs
path: app/build/outputs
- uses: actions/upload-artifact@v4
with:
name: default-debug
path: app/build/outputs/apk/default/debug
- uses: actions/upload-artifact@v4
with:
name: default-release
path: app/build/outputs/apk/default/release
- uses: actions/upload-artifact@v4
with:
name: fdroid-debug
path: app/build/outputs/apk/fdroid/debug
- uses: actions/upload-artifact@v4
with:
name: fdroid-release

View File

@ -25,28 +25,18 @@ jobs:
echo GKD_KEY_PASSWORD='${{ secrets.GKD_KEY_PASSWORD }}' >> gradle.properties
- run: chmod 777 ./gradlew
- run: ./gradlew app:assemble
- run: ./gradlew app:assembleRelease
- uses: actions/upload-artifact@v4
with:
name: outputs
path: app/build/outputs
- uses: actions/upload-artifact@v4
with:
name: default-debug
path: app/build/outputs/apk/default/debug
- uses: actions/upload-artifact@v4
with:
name: default-release
path: app/build/outputs/apk/default/release
- uses: actions/upload-artifact@v4
with:
name: fdroid-debug
path: app/build/outputs/apk/fdroid/debug
- uses: actions/upload-artifact@v4
with:
name: fdroid-release

View File

@ -1,6 +1,10 @@
# http://www.gradle.org/docs/current/userguide/build_environment.html
org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g
org.gradle.parallel=true
org.gradle.caching=true
org.gradle.configuration-cache=true
android.useAndroidX=true
android.enableJetifier=true
kotlin.code.style=official
android.debug.obsoleteApi=true
kotlin.code.style=official