generated from LiteLDev/liteloaderbds-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 4
66 lines (56 loc) · 1.68 KB
/
cmake-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
60
61
62
63
64
65
66
name: Trapdoor Build
on: [ push ]
jobs:
Build:
runs-on: windows-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- name: Pull submodule
run: FetchSDK.cmd
shell: cmd
- name: Download Server
run: |
mkdir D:/BDS
ServerLink=$(cat 'LINK.txt')
curl -L -o D:/BDS/server.zip "$ServerLink"
unzip D:/BDS/server.zip -d D:/BDS > /dev/null
shell: bash
- name: Build Bedrock Library
run: |
cd SDK/Tools
LibraryBuilder.exe -o ..\Lib D:\BDS
shell: cmd
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DBETA=PFF -DDEV=OFF
- name: Build
run: cmake --build ${{github.workspace}}/build
- name: Create Artifact
run: |
mkdir out
mkdir out/plugins
mkdir out/plugins/beopt
cp ./build/Debug/beopt*.dll ./out/plugins/
cp ./build/Debug/beopt*.pdb ./out/plugins/
cp ./changelog.md ./out/
cp ./README.md ./out
shell: bash
- name: Upload Actions File
uses: actions/[email protected]
with:
name: release
path: ${{github.workspace}}/out
#create release
- name: Prepare Release
run: |
7z a release.zip ${{github.workspace}}/out
python create_release_note.py
- name: Publish Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
body_path: ${{ github.workspace }}/release_note
files: |
release.zip
env:
GITHUB_REPOSITORY: hhhxiao/trapdoor-ll