-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgraalvm_native_image_windows.yml
More file actions
47 lines (38 loc) · 1.31 KB
/
Copy pathgraalvm_native_image_windows.yml
File metadata and controls
47 lines (38 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Build GraalVM native Windows image
on:
- workflow_dispatch
- workflow_call
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v7
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v3
- name: Visual Studio shell
uses: egor-tensin/vs-shell@v2.2
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
version: '25'
java-version: '25'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Download JavaFX sdk
run: curl https://download2.gluonhq.com/openjfx/26.0.2/openjfx-26.0.2_windows-x64_bin-sdk.zip -o javafx_sdk.zip
- name: Extract SDK with 7-Zip
run: |
7z x javafx_sdk.zip -otemp_dir
mv temp_dir/javafx-sdk-26.0.2 javafx_sdk
- name: Build GraalVM native image
run: .\gradlew.bat nativeCompile
- name: Make staging directory
run: mkdir staging\NitroSense
- name: Copy native image and DLLs to staging
run: Copy-Item -Path "build/native/nativeCompile/*" -Destination "staging/NitroSense/" -Recurse
- name: Upload Artifact
uses: actions/upload-artifact@v7
with:
name: NitroSense-Native-Windows
path: staging