Fix crash on default server creation #2737
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
- x64 | |
config: | |
- Debug | |
- RelWithDebInfo | |
- Release | |
runs-on: ${{ matrix.system }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Cache packages | |
uses: actions/cache@v4 | |
with: | |
key: ${{ matrix.preset }}-NuGet-${{ hashFiles('**/Packages.config') }} | |
restore-keys: | | |
${{ matrix.preset }}-NuGet-${{ hashFiles('**/Packages.config') }} | |
${{ 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 }} |