parent
0fc0a8e989
commit
53ae5f877d
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@ -3,28 +3,28 @@
|
|||||||
# certain platforms or Java versions, and provides a first line of defence
|
# certain platforms or Java versions, and provides a first line of defence
|
||||||
# against bad commits.
|
# against bad commits.
|
||||||
|
|
||||||
name: build
|
name: 构建
|
||||||
on: [pull_request, push]
|
on: [pull_request, push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- name: checkout repository
|
- name: 检查存储库
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: validate gradle wrapper
|
- name: 验证 gradle 封装器
|
||||||
uses: gradle/actions/wrapper-validation@v4
|
uses: gradle/actions/wrapper-validation@v4
|
||||||
- name: setup jdk
|
- name: 设置 Jdk
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: '21'
|
java-version: '21'
|
||||||
distribution: 'microsoft'
|
distribution: 'microsoft'
|
||||||
- name: make gradle wrapper executable
|
- name: 使 gradle 封装程序可执行
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
- name: build
|
- name: 构建
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
- name: capture build artifacts
|
- name: 捕获构建工件
|
||||||
uses: christopherhx/gitea-upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Artifacts
|
name: Artifacts
|
||||||
path: build/libs/
|
path: build/libs/
|
Loading…
x
Reference in New Issue
Block a user