Skip to content

Commit 40947ba

Browse files
committed
Add test for automatic NI setup on Windows.
Context: oracle/graal#5881
1 parent 4356481 commit 40947ba

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
java --version
156156
native-image --version
157157
if: runner.os == 'Windows'
158-
test-native-image-msvc:
158+
test-native-image-windows:
159159
name: native-image on windows-latest
160160
runs-on: windows-latest
161161
permissions:
@@ -166,7 +166,30 @@ jobs:
166166
- name: Run setup-graalvm action
167167
uses: ./
168168
with:
169-
version: 'latest'
169+
version: 'dev'
170+
java-version: 'dev'
171+
components: 'native-image'
172+
native-image-job-reports: 'true'
173+
native-image-pr-reports: 'true'
174+
github-token: ${{ secrets.GITHUB_TOKEN }}
175+
- name: Build HelloWorld executable with GraalVM Native Image on Windows
176+
run: |
177+
echo 'public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); } }' > HelloWorld.java
178+
javac HelloWorld.java
179+
native-image HelloWorld
180+
./helloworld
181+
test-native-image-windows-msvc:
182+
name: native-image on windows-2019
183+
runs-on: windows-2019
184+
permissions:
185+
contents: read
186+
pull-requests: write # for `native-image-pr-reports` option
187+
steps:
188+
- uses: actions/checkout@v3
189+
- name: Run setup-graalvm action
190+
uses: ./
191+
with:
192+
version: '22.3.1'
170193
java-version: '17'
171194
components: 'native-image'
172195
native-image-job-reports: 'true'

0 commit comments

Comments
 (0)