mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-19 11:11:38 +00:00
ci: preserve frozen Android build contract (#105299)
This commit is contained in:
committed by
GitHub
parent
ff4b4517d2
commit
a20314d6cc
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@@ -438,6 +438,8 @@ jobs:
|
||||
const targetWorkflow = existsSync(".github/workflows/ci.yml")
|
||||
? readFileSync(".github/workflows/ci.yml", "utf8")
|
||||
: "";
|
||||
const supportsCurrentAndroidCi = targetWorkflow.includes("android-ci-contract-v2");
|
||||
const useCompatibleAndroidCi = compatibilityTarget && !supportsCurrentAndroidCi;
|
||||
const supportsFormatCheck =
|
||||
targetWorkflow.split("pnpm format:check").length - 1 >= 2;
|
||||
const runFormatCheck = !frozenTarget || supportsFormatCheck;
|
||||
@@ -548,10 +550,16 @@ jobs:
|
||||
android_matrix: createMatrix(
|
||||
runAndroid
|
||||
? [
|
||||
// android-ci-contract-v2: both app variants, Android lint, benchmark, and ktlint.
|
||||
{ check_name: "android-test-play", task: "test-play" },
|
||||
{ check_name: "android-test-third-party", task: "test-third-party" },
|
||||
{ check_name: "android-build-play", task: "build-play" },
|
||||
{ check_name: "android-ktlint", task: "ktlint" },
|
||||
{
|
||||
check_name: "android-build-play",
|
||||
task: useCompatibleAndroidCi ? "build-play-compat" : "build-play",
|
||||
},
|
||||
...(!useCompatibleAndroidCi
|
||||
? [{ check_name: "android-ktlint", task: "ktlint" }]
|
||||
: []),
|
||||
]
|
||||
: [],
|
||||
),
|
||||
@@ -2545,6 +2553,11 @@ jobs:
|
||||
:app:lintThirdPartyDebug \
|
||||
:benchmark:assembleDebug
|
||||
;;
|
||||
build-play-compat)
|
||||
# Frozen targets keep their target-owned Android build contract. New lint rules
|
||||
# must not retroactively reject a previously validated release branch.
|
||||
./gradlew --no-daemon --build-cache :app:assemblePlayDebug
|
||||
;;
|
||||
ktlint)
|
||||
# Mirrors `pnpm android:lint`; keeps formatting drift out of main (see PR #100304 sweep).
|
||||
./gradlew --no-daemon --build-cache :app:ktlintCheck :benchmark:ktlintCheck
|
||||
|
||||
Reference in New Issue
Block a user