更新 .gitea/workflows/test.yaml

This commit is contained in:
2026-05-06 11:23:05 +08:00
parent a112dc247f
commit 93c34b3d2f

View File

@@ -19,6 +19,7 @@ jobs:
with:
ref: dev/3.1_release_merge_MS
# Maven 官方缓存Gitea 推荐)
- name: 缓存 Maven 依赖
uses: actions/cache@v5
with:
@@ -26,12 +27,13 @@ jobs:
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: 查看 JDK & Maven 版本
- name: 构建项目
run: |
java -version
mvn -v
mvn clean package -DskipTests
- name: Maven 打包
run: mvn -B package --file pom.xml
- name: 查看构建结果
run: ls -lh target/*.jar