Skip to content

Commit

Permalink
Add pipeline for non-Unity build
Browse files Browse the repository at this point in the history
  • Loading branch information
acidicMercury8 committed Mar 18, 2024
1 parent f489af5 commit 3ea0409
Show file tree
Hide file tree
Showing 3 changed files with 543 additions and 2 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/nonunity-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: 'Non-Unity build'

on:
push:
branches:
- '**'
paths:
- '.github/workflows/**'
- 'gamedata/**'
- 'sdk/**'
- 'src/**'
- '**/CMakeLists.txt'
- '**/*.ltx'
- '**/*.json'
pull_request:
branches:
- '**'
paths:
- '.github/workflows/**'
- 'gamedata/**'
- 'sdk/**'
- 'src/**'
- '**/CMakeLists.txt'
- '**/*.ltx'
- '**/*.json'

defaults:
run:
shell: pwsh

jobs:
build-engine:
name: 'Build engine'

strategy:
matrix:
system:
- windows-2022
preset:
- Engine
platform:
- x86
- x64
config:
- Debug
- RelWithDebInfo
- Release

runs-on: ${{ matrix.system }}

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Cache dependencies
uses: actions/cache@v4
with:
key: ${{ matrix.preset }}-NuGet-
restore-keys: |
${{ matrix.preset }}-NuGet-
path: |
~/.nuget/packages
- name: Configure engine
run: |
cmake --preset ${{ matrix.preset }}-${{ matrix.platform }}-NonUnity
- name: Build engine
run: |
cmake --build --preset ${{ matrix.preset }}-${{ matrix.platform }}-NonUnity-${{ matrix.config }}
83 changes: 81 additions & 2 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"IXRAY_PLUGIN_LW": "OFF",
"IXRAY_ASAN": "OFF",
"IXRAY_USE_R1": "ON",
"IXRAY_USE_R2": "ON"
"IXRAY_USE_R2": "ON",
"IXRAY_UNITYBUILD": "ON"
}
},
{
Expand All @@ -45,6 +46,46 @@
}
},

{
"name": "Engine-Base-NonUnity",
"displayName": "Engine-Base-NonUnity",
"hidden": true,
"generator": "Visual Studio 17 2022",
"cacheVariables": {
"IXRAY_UTILS": "OFF",
"IXRAY_MP": "OFF",
"IXRAY_COMPRESSOR_ONLY": "OFF",
"IXRAY_PLUGIN_MAX": "OFF",
"IXRAY_PLUGIN_LW": "OFF",
"IXRAY_ASAN": "OFF",
"IXRAY_USE_R1": "ON",
"IXRAY_USE_R2": "ON",
"IXRAY_UNITYBUILD": "OFF"
}
},
{
"name": "Engine-x86-NonUnity",
"displayName": "Engine-x86-NonUnity",
"inherits": "Engine-Base-NonUnity",
"binaryDir": "build/x86/Engine-NonUnity",
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"intelliSenseMode": "windows-msvc-x86"
}
}
},
{
"name": "Engine-x64-NonUnity",
"displayName": "Engine-x64-NonUnity",
"inherits": "Engine-Base-NonUnity",
"binaryDir": "build/x64/Engine-NonUnity",
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"intelliSenseMode": "windows-msvc-x64"
}
}
},

{
"name": "Server-Base",
"displayName": "Server-Base",
Expand All @@ -58,7 +99,8 @@
"IXRAY_PLUGIN_LW": "OFF",
"IXRAY_ASAN": "OFF",
"IXRAY_USE_R1": "ON",
"IXRAY_USE_R2": "ON"
"IXRAY_USE_R2": "ON",
"IXRAY_UNITYBUILD": "ON"
}
},
{
Expand Down Expand Up @@ -256,6 +298,43 @@
"configuration": "Release"
},

{
"name": "Engine-x86-NonUnity-Debug",
"displayName": "Engine-x86-NonUnity-Debug",
"configurePreset": "Engine-x86-NonUnity",
"configuration": "Debug"
},
{
"name": "Engine-x86-NonUnity-RelWithDebInfo",
"displayName": "Engine-x86-NonUnity-RelWithDebInfo",
"configurePreset": "Engine-x86-NonUnity",
"configuration": "RelWithDebInfo"
},
{
"name": "Engine-x86-NonUnity-Release",
"displayName": "Engine-x86-NonUnity-Release",
"configurePreset": "Engine-x86-NonUnity",
"configuration": "Release"
},
{
"name": "Engine-x64-NonUnity-Debug",
"displayName": "Engine-x64-NonUnity-Debug",
"configurePreset": "Engine-x64-NonUnity",
"configuration": "Debug"
},
{
"name": "Engine-x64-NonUnity-RelWithDebInfo",
"displayName": "Engine-x64-NonUnity-RelWithDebInfo",
"configurePreset": "Engine-x64-NonUnity",
"configuration": "RelWithDebInfo"
},
{
"name": "Engine-x64-NonUnity-Release",
"displayName": "Engine-x64-NonUnity-Release",
"configurePreset": "Engine-x64-NonUnity",
"configuration": "Release"
},

{
"name": "Server-x86-Debug",
"displayName": "Server-x86-Debug",
Expand Down
Loading

0 comments on commit 3ea0409

Please sign in to comment.