Skip to content

Commit

Permalink
Update native-image build stage
Browse files Browse the repository at this point in the history
  • Loading branch information
paytoncain committed Apr 5, 2024
1 parent b2e7336 commit 2f72020
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,12 @@ jobs:
name: reflection-config
path: "pace-cli/target/classes/native-reflection-configuration.json"

osx-arm64:
native-image:
needs: build
runs-on: macos-14
strategy:
matrix:
os: [macos-14]
runs-on: ${{ matrix.os }}
steps:
- name: Set up JDK 17
uses: graalvm/setup-graalvm@v1
Expand All @@ -62,18 +65,19 @@ jobs:
- name: Upload Executable
uses: actions/upload-artifact@v4
with:
name: pace-cli-mac-arm64
name: pace-cli-${{ env.RUNNER_ARCH }}
path: "pace-cli"

release:
needs:
- build
- osx-arm64
- native-image
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
- run: mkdir release
- run: zip -r release/pace-cli-mac-arm64-${{ needs.build.outputs.version }}.zip pace-cli-mac-arm64
# - run: zip -r release/pace-cli-mac-arm64-${{ needs.build.outputs.version }}.zip pace-cli-mac-arm64
- run: ls -l
- run: cp exe-jar/pace-cli-${{ needs.build.outputs.version }}-jar-with-dependencies.jar release/pace-cli-${{ needs.build.outputs.version }}.jar
- name: Update branch release
uses: eine/tip@master
Expand Down

0 comments on commit 2f72020

Please sign in to comment.