-
Notifications
You must be signed in to change notification settings - Fork 23
36 lines (30 loc) · 1019 Bytes
/
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
name: Build Game and Server
on: [workflow_dispatch]
jobs:
Windows:
runs-on: windows-2022
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
shell: cmd
run: |
cd src
git clone --depth=1 https://github.com/ko4life-net/ko-vendor.git vendor
- name: Build KnightOnLine
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
cd src
msbuild Game.sln -t:Clean -t:Build -p:Configuration=Release /m
- name: Build Server
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
cd src
msbuild Server.sln -t:Clean -t:Build -p:Configuration=Release /m
- name: Upload
uses: actions/upload-artifact@v3
with:
name: x86-release
path: src/build/Release/*.exe