-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (34 loc) · 1.16 KB
/
native-image.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
name: GraalVM Native Image builds
on: push
jobs:
build:
name: Optimize-to-xes on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
steps:
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
name: Build native-image
- run: mvn -Pnative native:compile
- run: |
java -Dspring.aot.enabled=true \
-agentlib:native-image-agent=config-output-dir=./src/main/resources/META-INF/native-image \
-Doptimize.base-url="$base_url" \
-Doptimize.report-id="$report_id" \
-Doptimize.client-id="$client_id" \
-Doptimize.client-secret="$client_secret" \
-Dxes-mapping.base-path="target" \
-jar target/optimize-to-xes-*.jar
- run: mvn -Pnative native:compile
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: optimize-to-xes-${{ matrix.os }}
path: target/optimize-to-xes*