QuarkTree 53ae5f877d
Some checks are pending
构建 / build (push) Waiting to run
更新 Actions
2025-03-14 16:51:21 +08:00

30 lines
907 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: actions/upload-artifact@v3
with:
name: Artifacts
path: build/libs/