QuarkTree 4a92b11da5
Some checks failed
构建 / build (push) Failing after 10m11s
Update build.yml
2025-03-14 21:04:44 +08:00

30 lines
897 B
YAML

# Automatically build the project and run any configured tests for every push
# and submitted pull request. This can help catch issues that only occur on
# certain platforms or Java versions, and provides a first line of defence
# against bad commits.
name: 构建
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: 检查存储库
uses: actions/checkout@v4
- name: 验证 Gradle
uses: gradle/actions/wrapper-validation@v4
- name: 设置 JDK
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'microsoft'
- name: 使 Gradle 可执行
run: chmod +x ./gradlew
- name: 构建
run: ./gradlew build
- name: 上传构建释放
uses: christopherhx/gitea-upload-artifact@v4
with:
name: Artifacts
path: build/libs/