From 8ba85fa51d55d74d33fea6783c5e2074ea73639e Mon Sep 17 00:00:00 2001 From: ZhanGSKen Date: Sat, 13 Jun 2026 09:11:58 +0800 Subject: [PATCH] Update gradle.yml --- .github/workflows/gradle.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 1c3610a..26be25e 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -33,8 +33,9 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 + # CI环境禁用Gradle Daemon,避免进程异常锁定 - name: Build with Gradle Wrapper - run: ./gradlew build + run: ./gradlew build --no-daemon # NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html). # If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version. @@ -51,7 +52,7 @@ jobs: runs-on: ubuntu-latest permissions: - contents: write + contents: read dependency-graph: write steps: