forked from featurecat/lizzie
-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (59 loc) · 1.45 KB
/
pack.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
name: pack
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Make JRE
run: jlink --module-path $JAVA_HOME/jmods/ --add-modules java.desktop --compress=2 --strip-debug --output tmp_jre
- name: Upload JRE
uses: actions/upload-artifact@v2
with:
name: jre
path: tmp_jre
- name: Make JAR
run: mvn -B package --file pom.xml
- name: Upload JAR
uses: actions/upload-artifact@v2
with:
name: jar
path: target/*-shaded.jar
zip:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Initialize
shell: bash
run: |
cd unofficial_release
rm -rf jre jar katago
mkdir jre jar katago
- name: Download JRE
uses: actions/download-artifact@v2
with:
name: jre
path: unofficial_release/jre
- name: Download JAR
uses: actions/download-artifact@v2
with:
name: jar
path: unofficial_release/jar
- name: Make ZIP
shell: bash
run: |
cd unofficial_release
make kata
make zip
- name: Upload ZIP
uses: actions/upload-artifact@v2
with:
name: lizzie_unofficial_release
path: unofficial_release/tmp_Lizzie-*.zip