Skip to content

Commit

Permalink
Update graalvm-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ashr123 authored Nov 2, 2023
1 parent 9490922 commit fc71397
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/graalvm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,25 @@ name: GraalVM Native Image builds
on: [ push, pull_request ]
jobs:
build:
name: Target ${{ matrix.target }}
runs-on: ubuntu-latest
name: Target ${{ matrix.os }}-${{ matrix.architecture }}
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
target: [ macos-aarch64, macos-amd64, windows-aarch64, windows-amd64, ubuntu-aarch64, ubuntu-amd64, ubuntu-riscv64 ]
include:
- os: macos
architecture: aarch64
- os: macos
architecture: amd64
- os: windows
architecture: aarch64
- os: windows
architecture: amd64
- os: ubuntu
architecture: aarch64
- os: ubuntu
architecture: amd64
- os: ubuntu
architecture: riscv64
steps:
- uses: actions/[email protected]

Expand All @@ -21,10 +35,10 @@ jobs:
run: mvn package

- name: Creating native image
run: native-image --target=${{ matrix.target }} -jar target/red-alert-listener-*-jar-with-dependencies.jar
run: native-image --target=${{ matrix.os }}-${{ matrix.architecture }} -jar target/red-alert-listener-*-jar-with-dependencies.jar

- name: Upload binary
uses: actions/upload-artifact@v2
with:
name: red-alert-listener-${{ matrix.target }}
name: red-alert-listener-${{ matrix.os }}-${{ matrix.architecture }}
path: red-alert-listener*

0 comments on commit fc71397

Please sign in to comment.