init-cicd-build-maven
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 17s

This commit is contained in:
TangHuan 2025-04-03 09:00:00 +08:00
parent 783c07fa30
commit 29de3aaecc

View File

@ -30,15 +30,15 @@ jobs:
cache: "maven" cache: "maven"
- run: java -version - run: java -version
# 缓存 Maven 依赖 # 缓存 Maven 依赖
- name: Cache Maven packages # - name: Cache Maven packages
uses: https://git.pintantan.com/actions/cache@v3 # uses: https://git.pintantan.com/actions/cache@v3
with: # with:
path: ~/.m2/repository # path: ~/.m2/repository
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} # key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2 # restore-keys: ${{ runner.os }}-m2
- name: 编译 - name: 编译
run: chmod +x ./mvnw && ./mvnw -s settings.xml -B -Ptrydo -Phuawei clean install -U -DskipTests -Pprod run: mvn -s settings.xml -B -Ptrydo -Phuawei clean install -U -DskipTests -Pprod
- run: mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar) - run: mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar)