Skip to content

Create graalvm-build.yml #5

Create graalvm-build.yml

Create graalvm-build.yml #5

Workflow file for this run

name: GraalVM Native Image builds
on: [push, pull_request]
jobs:
build:
name: HelloWorld on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/[email protected]
- uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: Creating jar package
run: mvn package
- name: Creating native image
run: native-image -jar target/red-alert-listener-*-jar-with-dependencies.jar
- name: Upload binary
uses: actions/upload-artifact@v2
with:
name: red-alert-listener-${{ matrix.os }}
path: red-alert-listener*