mirror of
http://gitea.winboll.cc/Studio/WinBoLL.git
synced 2026-06-29 12:09:50 +08:00
Update gradle.yml
This commit is contained in:
25
.github/workflows/gradle.yml
vendored
25
.github/workflows/gradle.yml
vendored
@@ -15,6 +15,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -28,19 +29,30 @@ jobs:
|
|||||||
java-version: '17'
|
java-version: '17'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|
||||||
# Configure Gradle cache
|
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
|
||||||
|
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
|
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
|
||||||
|
|
||||||
# 增加 --no-daemon 禁用守护进程,CI环境稳定编译
|
|
||||||
- name: Build with Gradle Wrapper
|
- name: Build with Gradle Wrapper
|
||||||
run: ./gradlew build --no-daemon
|
run: ./gradlew build
|
||||||
|
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
# - name: Setup Gradle
|
||||||
|
# uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
|
||||||
|
# with:
|
||||||
|
# gradle-version: '8.9'
|
||||||
|
#
|
||||||
|
# - name: Build with Gradle 8.9
|
||||||
|
# run: gradle build
|
||||||
|
|
||||||
dependency-submission:
|
dependency-submission:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# 补齐必备权限
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: write
|
||||||
dependency-graph: write
|
dependency-graph: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -51,6 +63,7 @@ jobs:
|
|||||||
java-version: '17'
|
java-version: '17'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|
||||||
# 生成并提交依赖图谱
|
# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
|
||||||
|
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
|
||||||
- name: Generate and submit dependency graph
|
- name: Generate and submit dependency graph
|
||||||
uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
|
uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user