Skip to content

Merge branch 'master' of https://github.com/UTengine/KnightOnline #1

Merge branch 'master' of https://github.com/UTengine/KnightOnline

Merge branch 'master' of https://github.com/UTengine/KnightOnline #1

Workflow file for this run

# 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