build(deps): add Jiguang SDK repositories and CMake job limit plugin
Some checks failed
Frontend CI / ota (android) (push) Failing after 54s
Frontend CI / ota (ios) (push) Failing after 52s
Frontend CI / build-and-push-web (push) Has been cancelled
Frontend CI / build-android-apk (push) Has been cancelled

Add Jiguang Maven repository (developer.jiguang.cn) to dependency resolution management for JPush SDK integration. Integrate new Expo config plugins for CMake job limiting and JCore patching.

- Add jiguang maven repo to dependencyResolutionManagement and all buildscript repositories
- Create withCmakeJobLimit plugin to set cmake job limits in gradle properties
- Create withJcorePatch plugin for JCore SDK configuration
- Increase CMAKE_BUILD_PARALLEL_LEVEL from 4 to 8 for faster native builds
- Add gradle HTTP timeout settings (30s connection/socket timeout)
- Remove npmmirror registry from npmrc and CI workflows (use default npm registry)
- Downgrade upload-artifact action from v4 to v3 for compatibility
- Remove docker layer caching for frontend-web build
This commit is contained in:
lafay
2026-06-15 22:58:48 +08:00
parent f3d54a3f4c
commit 1012337e57
6 changed files with 157 additions and 10 deletions

View File

@@ -41,7 +41,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '25.6.1'
registry-url: 'https://registry.npmmirror.com'
cache: 'npm'
- name: Install dependencies
@@ -106,7 +105,7 @@ jobs:
NODE_OPTIONS: "--max-old-space-size=8192"
NODE_ENV: "production"
NDK_NUM_JOBS: "4"
CMAKE_BUILD_PARALLEL_LEVEL: "4"
CMAKE_BUILD_PARALLEL_LEVEL: "8"
GRADLE_USER_HOME: /root/.gradle
permissions:
contents: read
@@ -124,7 +123,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '25.6.1'
registry-url: 'https://registry.npmmirror.com'
cache: 'npm'
- name: Install dependencies
@@ -188,6 +186,7 @@ jobs:
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://developer.huawei.com/repo/' }
maven { url 'https://developer.jiguang.cn/maven' }
google()
mavenCentral()
gradlePluginPortal()
@@ -210,6 +209,20 @@ jobs:
includeBuild(expoPluginsPath)
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
repositories {
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://developer.huawei.com/repo/' }
maven { url 'https://developer.jiguang.cn/maven' }
maven { url 'https://www.jitpack.io' }
google()
mavenCentral()
}
}
plugins {
id("com.facebook.react.settings")
id("expo-autolinking-settings")
@@ -265,6 +278,7 @@ jobs:
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://www.jitpack.io' }
maven { url 'https://developer.huawei.com/repo/' }
maven { url 'https://developer.jiguang.cn/maven' }
google()
mavenCentral()
}
@@ -292,6 +306,8 @@ jobs:
expo.webp.animated=false
ndkVersion=27.1.12297006
expo.useLegacyPackaging=false
systemProp.org.gradle.internal.http.connectionTimeout=30000
systemProp.org.gradle.internal.http.socketTimeout=30000
PROPS_EOF
# Append signing properties (secrets appended, not cached)
@@ -313,7 +329,7 @@ jobs:
./gradlew :app:assembleRelease -PreactNativeArchitectures=arm64-v8a --max-workers=4 --parallel
- name: Upload APK artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: withyou-android-release-apk
path: android/app/build/outputs/apk/release/app-release.apk
@@ -396,8 +412,6 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64
provenance: false
cache-from: type=registry,ref=code.littlelan.cn/carrot_bbs/frontend-web:buildcache
cache-to: type=registry,ref=code.littlelan.cn/carrot_bbs/frontend-web:buildcache,mode=max
- name: Show image tags
run: |