Update gradle.yml

This commit is contained in:
2026-06-13 09:11:58 +08:00
committed by GitHub
parent 589e62279d
commit 8ba85fa51d

View File

@@ -33,8 +33,9 @@ jobs:
- name: Setup Gradle - name: Setup Gradle
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
# CI环境禁用Gradle Daemon避免进程异常锁定
- name: Build with Gradle Wrapper - 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). # 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. # 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 runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: read
dependency-graph: write dependency-graph: write
steps: steps: