mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-24 06:23:35 +00:00
d78b50874c
* upgrade MacOS build settings for better C++20 compatibility * add fixes I forgot * 3rd try * Update UserManager.cpp * Update CMakeLists.txt * End with newline * Update CMakeLists.txt * update to reflect feedback * Update CMakeLists.txt to disable deprecation warnings on SHA512 * attempt to disable sqlite warnings * revert last attempt (didn't work) * disable sqlite deprecation warnings on MacOS
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 }}
|
|
continue-on-error: true
|
|
strategy:
|
|
matrix:
|
|
os: [ windows-2022, ubuntu-22.04, macos-13 ]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
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: Install libssl and switch to XCode 15.2 (Mac Only)
|
|
if: ${{ matrix.os == 'macos-13' }}
|
|
run: |
|
|
brew install openssl@3
|
|
sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer
|
|
- 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@v3
|
|
with:
|
|
name: build-${{matrix.os}}
|
|
path: |
|
|
build/*Server*
|
|
build/*.ini
|
|
build/*.so
|
|
build/*.dll
|
|
build/vanity/
|
|
build/navmeshes/
|
|
build/migrations/
|
|
build/*.dcf
|
|
!build/*.pdb
|
|
!build/d*/
|