-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 928 Bytes
/
graal.yml
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
name: GraalVM build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Print Environment State
run: |
echo "GRAALVM_HOME: $GRAALVM_HOME"
echo "JAVA_HOME: $JAVA_HOME"
java --version
native-image --version
- name: Build
run: ./gradlew.bat nativeCompile
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: executable
path: ./build/native/nativeCompile/**.exe
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./build/native/nativeCompile/**.exe