mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 14:40:06 +08:00
Compare commits
7 Commits
cc8d2bf678
...
ae5b401f4e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae5b401f4e | ||
|
|
2a5f509448 | ||
|
|
3ec54f0748 | ||
|
|
edac945ffb | ||
|
|
8f62f11ba6 | ||
|
|
25441b10f5 | ||
|
|
cafe9cf14a |
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
@ -63,15 +63,33 @@ jobs:
|
||||
- name: Gradle Build
|
||||
env:
|
||||
BUILD_PLUGIN: none
|
||||
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.workers.max=2 -Dorg.gradle.jvmargs=-Xmx2g"
|
||||
run: |
|
||||
echo "sdk.dir=${ANDROID_HOME}" > local.properties
|
||||
echo "ndk.dir=${ANDROID_HOME}/ndk/25.0.8775105" >> local.properties
|
||||
export LOCAL_PROPERTIES="${{ secrets.LOCAL_PROPERTIES }}"
|
||||
|
||||
echo "${{ secrets.LOCAL_PROPERTIES }}" >> local.properties
|
||||
|
||||
export LOCAL_PROPERTIES=$(base64 -w 0 local.properties)
|
||||
echo "${LOCAL_PROPERTIES}"
|
||||
# echo "clean gradle build"
|
||||
# ./gradlew clean --no-daemon
|
||||
|
||||
echo "start init aciton"
|
||||
./run init action gradle
|
||||
./gradlew app:assembleOssRelease
|
||||
|
||||
echo "start build app"
|
||||
./gradlew app:assembleOssRelease \
|
||||
--no-daemon \
|
||||
--stacktrace \
|
||||
--info \
|
||||
--console=plain \
|
||||
--warning-mode=all \
|
||||
--max-workers=2
|
||||
APK=$(find app/build/outputs/apk -name '*arm64-v8a*.apk')
|
||||
APK=$(dirname $APK)
|
||||
echo "APK=$APK" >> $GITHUB_ENV
|
||||
echo "Build completed. APK directory: $APK"
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: APKs
|
||||
|
||||
@ -179,7 +179,7 @@ fun Project.setupAppCommon() {
|
||||
if (keystorePwd != null) {
|
||||
signingConfigs {
|
||||
create("release") {
|
||||
storeFile = rootProject.file("release.keystore")
|
||||
storeFile = rootProject.file("test_key.jks")
|
||||
storePassword = keystorePwd
|
||||
keyAlias = alias
|
||||
keyPassword = pwd
|
||||
|
||||
@ -1,25 +1,26 @@
|
||||
# Project-wide Gradle settings.
|
||||
# IDE (e.g. Android Studio) users:
|
||||
# Gradle settings configured through the IDE *will override*
|
||||
# any settings specified in this file.
|
||||
# For more details on how to configure your build environment visit
|
||||
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
||||
# Specifies the JVM arguments used for the daemon process.
|
||||
# The setting is particularly useful for tweaking memory settings.
|
||||
|
||||
# When configured, Gradle will run in incubating parallel mode.
|
||||
# This option should only be used with decoupled projects. More details, visit
|
||||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||
# org.gradle.parallel=true
|
||||
# AndroidX package structure to make it clearer which packages are bundled with the
|
||||
# Android operating system, and which are packaged with your app's APK
|
||||
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
||||
# Android 相关配置
|
||||
android.useAndroidX=true
|
||||
# Automatically convert third-party libraries to use AndroidX
|
||||
android.enableJetifier=true
|
||||
# Kotlin code style for this project: "official" or "obsolete":
|
||||
|
||||
# Kotlin 配置
|
||||
kotlin.code.style=official
|
||||
# Gradle parallel build
|
||||
|
||||
# Gradle 性能优化配置
|
||||
org.gradle.parallel=true
|
||||
org.gradle.caching=true
|
||||
org.gradle.daemon=false
|
||||
org.gradle.jvmargs=-Xmx4g -XX:+UseParallelGC -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
||||
org.gradle.configureondemand=true
|
||||
|
||||
# JVM 参数优化
|
||||
org.gradle.jvmargs=-Xmx2g \
|
||||
-XX:+UseParallelGC \
|
||||
-XX:MaxMetaspaceSize=512m \
|
||||
-XX:+HeapDumpOnOutOfMemoryError \
|
||||
-Dfile.encoding=UTF-8 \
|
||||
-XX:+UseCompressedOops \
|
||||
-XX:+OptimizeStringConcat \
|
||||
-XX:MetaspaceSize=256m \
|
||||
-XX:MaxGCPauseMillis=200
|
||||
|
||||
# 可选:设置最大工作线程数
|
||||
org.gradle.workers.max=2
|
||||
|
||||
BIN
test_key.jks
Normal file
BIN
test_key.jks
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user