-
Notifications
You must be signed in to change notification settings - Fork 173
74 lines (70 loc) · 2.08 KB
/
graalVM.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: GraalVM native-image build
on:
push:
paths:
- "src/**"
- "pom.xml"
- ".github/workflows/graalVM.yml"
jobs:
buildOnLinux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ayltai/setup-graalvm@v1
with:
java-version: 11
graalvm-version: 21.3.0
native-image: true
- name: Build with Maven
run: mvn -B clean package -Pnative --file pom.xml
- name: Copy artifacts
run: mkdir -p staging && cp target/log4j2-scanner staging/log4j2-scanner-linux-amd64 && cp target/*.jar staging
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: package
path: staging/
- name: Clean staging
run: rm -fr staging
buildOnMacOS:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: ayltai/setup-graalvm@v1
with:
java-version: 11
graalvm-version: 21.3.0
native-image: true
- name: Build with Maven
run: mvn -B clean package -Pnative --file pom.xml
- name: Copy artifacts
run: mkdir -p staging && cp target/log4j2-scanner staging/log4j2-scanner-mac-amd64
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: package
path: staging
- name: Clean staging
run: rm -fr staging
buildOnWindows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: ilammy/[email protected]
- uses: microsoft/setup-msbuild@v1
- uses: ayltai/setup-graalvm@v1
with:
java-version: 11
graalvm-version: 21.3.0
native-image: true
- name: Build with Maven
run: mvn -B clean package -Pnative --file pom.xml
shell: powershell
- name: Copy artifacts
run: cp target/log4j2-scanner.exe log4j2-scanner-win-amd64.exe
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
if-no-files-found: warn
name: package
path: target/*.exe