-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (60 loc) · 2.06 KB
/
jvm.yml
File metadata and controls
79 lines (60 loc) · 2.06 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
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
75
76
77
78
name: Build jvm version
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Remove old artifacts
uses: c-hive/gha-remove-artifacts@v1
with:
age: '0 month'
skip-tags: true
skip-recent: 5
- uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: temurin
- name: Build cif library
run: cd cultures-format-cif && mvn install --no-transfer-progress
- name: Build lib library
run: cd cultures-format-lib && mvn install --no-transfer-progress
- name: Build main language server
run: cd server && mvn clean install --no-transfer-progress
- name: Build fat-jar
shell: cmd
run: |
cd server
cd native
mvn clean install -Pfat-jar --no-transfer-progress
- name: Build minimal JVM
shell: cmd
run: jlink --add-modules java.base,java.logging,java.xml,jdk.unsupported,java.sql,java.naming,java.desktop,java.management,java.security.jgss,java.instrument,jdk.management --no-header-files --no-man-pages --strip-debug --compress 2 --output server\native\package\jre
- name: Copy server jar
run: Copy-Item "server\native\target\native-*.jar" -Destination "server\native\package\server.jar"
# CLIENT EXTENSION
- name: Copy server executable to client
run: |
Copy-Item -Path "server\native\package" -Destination "client\server" -Recurse
- name: Download extension dependencies
shell: cmd
run: |
cd client
npm install
- name: Install vscode packager
shell: cmd
run: |
cd client
npm install -g vsce
- name: Package extension
shell: cmd
run: |
cd client
vsce package
- name: Upload extension artifact
uses: actions/upload-artifact@v2
with:
name: extension-windows
path: client\cultures-development-kit*.vsix