init-cicd
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m36s

This commit is contained in:
TangHuan 2025-04-02 09:58:46 +08:00
parent 22a16c86a5
commit 349a9ab44a

View File

@ -9,17 +9,29 @@ jobs:
- name: 克隆代码
uses: https://gitea.com/actions/checkout@v4
- name: 下载jdk
cache: "maven"
run: |
download_url="https://dragonwell.oss-cn-shanghai.aliyuncs.com/21.0.6.0.6%2B7-test-dragonwell_extended/Alibaba_Dragonwell_Extended_21.0.6.0.6.7_x64_linux.tar.gz"
wget -O $RUNNER_TEMP/java_package.tar.gz $download_url
- uses: https://gitea.com/actions/setup-java@v4
name: 准备jdk
cache: "maven"
with:
distribution: 'jdkfile'
jdkFile: ${{ runner.temp }}/java_package.tar.gz
java-version: '21.0.6'
architecture: x64
- name: Configure Maven settings
uses: s4u/maven-settings-action@v2.8.0
with:
mirrors: |
[
{
"id": "trydo",
"mirrorOf": "*",
"url": "https://rep.dev.trydotec.com/nexus/repository/trydo/"
}
]
- name: 编译
run: chmod +x ./mvnw && ./mvnw clean install -U -DskipTests -Pprod