Skip to content

Commit

Permalink
fix: disable linux-arm-build +b
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolLoong committed Mar 19, 2024
1 parent eb8e1b5 commit b3bb06c
Showing 1 changed file with 36 additions and 35 deletions.
71 changes: 36 additions & 35 deletions .github/workflows/mavenBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,38 +140,39 @@ jobs:
with:
name: PNX-CLI-Linux-x86
path: target/pnx

linux-arm-build:
name: Linux arm 构建
runs-on: self-hosted
needs: check-files
if: contains(needs.check-files.outputs.changed-files, 'src/') || (github.event_name == 'push' && contains(github.event.commits[0].message, '+b'))

steps:
- name: 检出仓库内容
uses: actions/checkout@v2

- name: Maven构建
run: mvn -B package --file pom.xml

- id: get-version
uses: jactions/[email protected]

- name: 本机静态编译
run: |
cd target
native-image -jar PNX-CLI-${{ steps.get-version.outputs.version }}.jar -H:Name=pnx
- name: 上传可执行文件
uses: actions/upload-artifact@v2
with:
name: PNX-CLI-Linux-arm
path: target/pnx
#
# linux-arm-build:
# name: Linux arm 构建
# runs-on: self-hosted
# needs: check-files
# if: contains(needs.check-files.outputs.changed-files, 'src/') || (github.event_name == 'push' && contains(github.event.commits[0].message, '+b'))
#
# steps:
# - name: 检出仓库内容
# uses: actions/checkout@v2
#
# - name: Maven构建
# run: mvn -B package --file pom.xml
#
# - id: get-version
# uses: jactions/[email protected]
#
# - name: 本机静态编译
# run: |
# cd target
# native-image -jar PNX-CLI-${{ steps.get-version.outputs.version }}.jar -H:Name=pnx
#
# - name: 上传可执行文件
# uses: actions/upload-artifact@v2
# with:
# name: PNX-CLI-Linux-arm
# path: target/pnx

release:
name: 发布发行版
runs-on: ubuntu-latest
needs: [ windows-x86-build, linux-x86-build, linux-arm-build ]
# needs: [ windows-x86-build, linux-x86-build, linux-arm-build ]
needs: [ windows-x86-build, linux-x86-build]
if: startsWith(github.ref, 'refs/heads/master')

steps:
Expand All @@ -191,11 +192,11 @@ jobs:
with:
name: PNX-CLI-Linux-x86
path: target/linux-x86
- name: 下载Linux arm可执行文件
uses: actions/download-artifact@v2
with:
name: PNX-CLI-Linux-arm
path: target/linux-arm
# - name: 下载Linux arm可执行文件
# uses: actions/download-artifact@v2
# with:
# name: PNX-CLI-Linux-arm
# path: target/linux-arm
- name: 下载jar包
uses: actions/download-artifact@v2
with:
Expand All @@ -205,14 +206,14 @@ jobs:
run: |
zip -r PNX-CLI-Windows-x86.zip target/windows-x86/pnx.exe
zip -r PNX-CLI-Linux-x86.zip target/linux-x86/pnx
zip -r PNX-CLI-Linux-arm.zip target/linux-arm/pnx
# zip -r PNX-CLI-Linux-arm.zip target/linux-arm/pnx
- name: 创建发行版
uses: softprops/action-gh-release@v1
with:
files: |
PNX-CLI-Windows-x86.zip
PNX-CLI-Linux-x86.zip
PNX-CLI-Linux-arm.zip
# PNX-CLI-Linux-arm.zip
target/jar/PNX-CLI-${{ steps.get-version.outputs.version }}.jar
draft: false
prerelease: true
Expand Down

0 comments on commit b3bb06c

Please sign in to comment.