-
Notifications
You must be signed in to change notification settings - Fork 140
59 lines (47 loc) · 1.39 KB
/
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
52
53
54
55
56
57
58
59
name: Native Build
on: [ push, pull_request ]
jobs:
check:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup JDK 11
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
- name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
msbuild-architecture: x64
- name: Native Build
working-directory: native
run: >
msbuild native.sln
-t:rebuild
-p:Configuration=Release
-p:Platform=x86
-p:AssemblyName=CQP
- name: Native Upload
uses: actions/upload-artifact@v3
with:
name: native-build
path: native/Release
- name: CQP Move
run: copy src\main\resources\CQP.dll native\Release\CQP.dll
- name: chmod -R 777 *
run: chmod -R 777 *
- name: Init gradle project
run: ./gradlew assemble --scan
- name: Mirai Plugin Build
run: ./gradlew buildPlugin --scan
- name: Mirai Plugin SHA1SUM
shell: bash
working-directory: build/mirai
run: find . -name "*.jar" -type f -exec sh -c "sha1sum {} | cut -b-40 > {}.sha1" \;
- name: Mirai Plugin Upload
uses: actions/upload-artifact@v3
with:
name: mirai-plugin-build
path: build/mirai