mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-15 04:38:21 +00:00
6e2936504c
* Don't upload artifacts unless on main
* Fix if/endif mismatch warning
* Add thirdparty CMakeLists
* Keep more warnings around
* Remove more RakNet warnings
* Fix indentation and divided the cmake into libraries and bins
- Each library and binary got their own CMakeLists.txt
- Indentation was fixed everywhere
- Weird if statement flows replaced
* Revert "Fix indentation and divided the cmake into libraries and bins"
This reverts commit 005a12424e
.
* Add async value assignments
Resolves a warning where on some compilers this thread would _not_ be run async and would instead be run synchronous with the main thread, halting execution.
* Revert "Add async value assignments"
This commit was meant to be done on a seaparate branch but was accidentally pushed upstream to this branch.
* Fix Merge Conflict
* Resolve errors
Resolve errors with using continue() outside a foreach loop.
* breakout mariadb to thirdparty cmake
Move the mariadb cmake to its own directory to make each cmake file more focussed.
Co-authored-by: Jett <55758076+Jettford@users.noreply.github.com>
Co-authored-by: EmosewaMC <39972741+EmosewaMC@users.noreply.github.com>
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build-and-test:
|
|
name: Build & Test (${{ matrix.os }})
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ windows-2022, ubuntu-20.04 ]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
- name: Add msbuild to PATH (windows only)
|
|
if: ${{ matrix.os == 'windows-2022' }}
|
|
uses: microsoft/setup-msbuild@v1.1
|
|
with:
|
|
vs-version: '[17,18)'
|
|
msbuild-architecture: x64
|
|
- name: cmake
|
|
uses: lukka/run-cmake@v10
|
|
with:
|
|
configurePreset: "ci-${{matrix.os}}"
|
|
buildPreset: "ci-${{matrix.os}}"
|
|
testPreset: "ci-${{matrix.os}}"
|
|
- name: artifacts
|
|
uses: actions/upload-artifact@v2
|
|
if: ${{ github.ref == 'ref/head/main' }}
|
|
with:
|
|
name: build-${{matrix.os}}
|
|
path: |
|
|
build
|
|
!build/tests
|
|
!build/Testing
|
|
!build/CMakeFiles
|
|
!build/DartConfiguration.tcl
|
|
!build/CTestTestfile.cmake
|
|
!build/CMakeCache.txt
|
|
!build/build.ninja
|
|
!build/_deps
|
|
!build/cmake_install.cmake
|
|
!build/*.a
|
|
!build/*.lib
|
|
!build/*.dir
|
|
!build/*.vcxproj
|
|
!build/*.vcxproj.filters
|