Simplify complex Native Image template.

This commit is contained in:
Fabio Niephaus
2022-03-29 15:23:04 +02:00
parent 5a3116eab6
commit cf025f1a74
2 changed files with 8 additions and 15 deletions

View File

@@ -52,7 +52,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
version: [latest, dev, '22.0.0.2']
version: ['22.0.0.2', latest]
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
@@ -66,17 +66,10 @@ jobs:
- name: Build and run HelloWorld.java
run: |
echo 'public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); } }' > HelloWorld.java
javac HelloWorld.java
native-image HelloWorld
./helloworld
if: runner.os != 'Windows'
- name: Build and run HelloWorld.java on Windows
run: |
javac.exe HelloWorld.java
native-image.cmd HelloWorld
./helloworld.exe
if: runner.os == 'Windows'
- name: Upload binary
uses: actions/upload-artifact@v2