forked from Open-KO/KnightOnline
-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (70 loc) · 2.63 KB
/
Copy pathbuild_all.yml
File metadata and controls
86 lines (70 loc) · 2.63 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
79
80
81
82
83
84
85
86
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Build all
on:
push:
branches:
- master
# This specifically builds when anything relating to a build changes.
# Everything else can be ignored.
paths:
- '.github/workflows/build_all.yml'
- '**/*.props'
- '**/*.cpp'
- '**/*.h'
- '**/*.hpp'
- '**/*.ixx'
- '**/*.vcxproj'
- 'deps/**'
- 'All.sln'
- 'ThirdParty.sln'
pull_request:
branches:
- master
# This specifically builds when anything relating to a build changes.
# Everything else can be ignored.
paths:
- '.github/workflows/build_all.yml'
- '**/*.props'
- '**/*.cpp'
- '**/*.h'
- '**/*.hpp'
- '**/*.ixx'
- '**/*.vcxproj'
- 'deps/**'
- 'All.sln'
- 'ThirdParty.sln'
merge_group:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
BUILD_CONFIGURATION: [Debug, Release]
BUILD_PLATFORM: [Win32]
name: "All: ${{ matrix.BUILD_CONFIGURATION }} - ${{ matrix.BUILD_PLATFORM }}"
steps:
- uses: actions/checkout@v4
with:
submodules: 'false'
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
# NOTE: We could simply run All.sln, but it makes it far more obvious in the Github output when it's broken up across its solutions.
- name: Build third party dependencies
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /p:Configuration="${{matrix.BUILD_CONFIGURATION}}" /p:Platform="${{matrix.BUILD_PLATFORM}}" /p:NO_CLIENT_ASSETS="1" ThirdParty.sln
- name: Build client
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /p:Configuration="${{matrix.BUILD_CONFIGURATION}}" /p:Platform="${{matrix.BUILD_PLATFORM}}" /p:NO_CLIENT_ASSETS="1" Client.sln
- name: Build server
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /p:Configuration="${{matrix.BUILD_CONFIGURATION}}" /p:Platform="${{matrix.BUILD_PLATFORM}}" /p:NO_CLIENT_ASSETS="1" Server.sln
- name: Build tools
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /p:Configuration="${{matrix.BUILD_CONFIGURATION}}" /p:Platform="${{matrix.BUILD_PLATFORM}}" /p:NO_CLIENT_ASSETS="1" Tools.sln
- name: Build client tools
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /p:Configuration="${{matrix.BUILD_CONFIGURATION}}" /p:Platform="${{matrix.BUILD_PLATFORM}}" /p:NO_CLIENT_ASSETS="1" ClientTools.sln