Simplify GraalVM Native Image example.

[ci skip]
This commit is contained in:
Fabio Niephaus 2022-03-30 18:48:08 +02:00
parent 8085574f90
commit 60c5807781
No known key found for this signature in database
GPG Key ID: F21CF5275F31DFD6

View File

@ -48,18 +48,17 @@ name: GraalVM Native Image build
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
build: build:
name: ${{ matrix.version }} on ${{ matrix.os }} name: HelloWorld on ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
version: ['22.0.0.2', latest]
os: [macos-latest, windows-latest, ubuntu-latest] os: [macos-latest, windows-latest, ubuntu-latest]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: graalvm/setup-graalvm@v1 - uses: graalvm/setup-graalvm@v1
with: with:
version: ${{ matrix.version }} version: '22.0.0.2'
java-version: '11' java-version: '11'
components: 'native-image' components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
@ -74,7 +73,7 @@ jobs:
- name: Upload binary - name: Upload binary
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: helloworld-${{ matrix.os }}-${{ matrix.version }} name: helloworld-${{ matrix.os }}
path: helloworld* path: helloworld*
``` ```