-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.21 KB
/
native-build.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: GraalVM Native Build And Release
on:
push:
branches:
- "mainline"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '23'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Echo Versions and Paths
run: |
echo "GRAALVM_HOME: $GRAALVM_HOME"
echo "JAVA_HOME: $JAVA_HOME"
java --version
native-image --version
- name: Elevate wrapper permissions
run: chmod +x ./mvnw
- name: Build Native Binary
run: ./mvnw -Pnative native:compile
- name: Compress Native Binary
run: zip -j 2b2t.vc-api.zip target/2b2t.vc-api
- name: Upload Binary
uses: actions/upload-artifact@v4
with:
name: 2b2t.vc-api
path: 2b2t.vc-api.zip
- name: Release Artifact
uses: "softprops/action-gh-release@v2"
with:
prerelease: false
tag_name: latest
name: "Latest Release"
make_latest: true
files: |
2b2t.vc-api.zip