init-cicd-build-maven
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m21s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m21s
This commit is contained in:
parent
3cf3fd947f
commit
86a70a29e2
@ -7,21 +7,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 克隆代码
|
||||
uses: https://git.pintantan.com/actions/checkout@v4
|
||||
# 缓存 Maven 依赖
|
||||
# - name: Cache Jdk download
|
||||
# uses: https://gitea.com/actions/cache@v3
|
||||
# with:
|
||||
# path: $RUNNER_TEMP/java_package.tar.gz
|
||||
# key: ${{ runner.os }}-jdk-17.0.14
|
||||
# restore-keys: ${{ runner.os }}-jdk-17.0.14
|
||||
#
|
||||
# - name: 下载jdk
|
||||
# run: |
|
||||
# download_url="https://mirrors.tuna.tsinghua.edu.cn/Adoptium/17/jdk/x64/linux/OpenJDK17U-jdk_x64_linux_hotspot_17.0.14_7.tar.gz"
|
||||
# wget -O $RUNNER_TEMP/java_package.tar.gz $download_url
|
||||
|
||||
- uses: https://git.pintantan.com/actions/setup-java@v4
|
||||
uses: actions/checkout@v4
|
||||
- uses: actions/setup-java@v4
|
||||
name: 准备jdk
|
||||
with:
|
||||
distribution: 'microsoft'
|
||||
@ -33,13 +20,7 @@ jobs:
|
||||
name: 准备Maven
|
||||
with:
|
||||
maven-version: '3.9.7'
|
||||
# 缓存 Maven 依赖
|
||||
# - name: Cache Maven packages
|
||||
# uses: https://git.pintantan.com/actions/cache@v3
|
||||
# with:
|
||||
# path: ~/.m2/repository
|
||||
# key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||
# restore-keys: ${{ runner.os }}-m2
|
||||
|
||||
|
||||
- name: 编译
|
||||
run: mvn -s settings.xml -B -Ptrydo -Phuawei clean install -U -DskipTests -Pprod
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user