Skip to content

Commit

Permalink
support linux and mac
Browse files Browse the repository at this point in the history
  • Loading branch information
dudiao committed Apr 16, 2023
1 parent 9a47702 commit 43e12f9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/native_image_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fail-fast: false
matrix:
# 'ubuntu-latest', 'windows-latest', 'macos-latest'
os: ['windows-latest']
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
name: build - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
# https://github.com/softprops/action-gh-release/issues/236#issuecomment-1150530128
Expand All @@ -37,14 +37,15 @@ jobs:
- name: Build with Maven
run: |
mvn clean native:compile -P native,tencent --file pom.xml --no-transfer-progress package
cp target/solon-native-example* .
# 压缩文件
- name: Archive zip
uses: thedoctor0/zip-release@master
with:
type: 'zip'
path: 'target/solon-native-example*'
path: 'solon-native-example*'
filename: solon-native-example-${{ matrix.os }}.zip
exclusions: 'target/*.txt target/solon-native-example-*.jar target/solon-native-example-*.jar.original'
exclusions: 'solon-native-example*.txt solon-native-example*.jar solon-native-example*.jar.original'
# 上传构建产物
- name: Upload artifact
uses: actions/[email protected]
Expand Down

0 comments on commit 43e12f9

Please sign in to comment.