DarkflameServer/.github/workflows/build-and-test.yml

52 lines
1.3 KiB
YAML
Raw Normal View History

2022-01-05 13:28:14 +00:00
name: CI
on:
push:
2024-04-04 01:13:37 +00:00
branches: [ main ]
pull_request:
2024-04-04 01:13:37 +00:00
branches: [ main ]
jobs:
2022-01-03 15:28:16 +00:00
build-and-test:
2022-01-05 09:06:34 +00:00
name: Build & Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
continue-on-error: true
2022-01-05 09:06:34 +00:00
strategy:
matrix:
os: [ windows-2022, ubuntu-22.04, macos-13 ]
steps:
2024-04-09 01:30:06 +00:00
- uses: actions/checkout@v4
with:
submodules: true
- name: Add msbuild to PATH (Windows only)
2022-01-05 13:21:59 +00:00
if: ${{ matrix.os == 'windows-2022' }}
2024-04-09 02:38:34 +00:00
uses: microsoft/setup-msbuild@v2
2022-01-05 09:06:34 +00:00
with:
2022-01-05 13:29:24 +00:00
vs-version: '[17,18)'
2022-01-05 09:06:34 +00:00
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:
workflowPreset: "ci-${{matrix.os}}"
- name: artifacts
2024-04-09 01:30:06 +00:00
uses: actions/upload-artifact@v4
with:
2022-01-05 09:06:34 +00:00
name: build-${{matrix.os}}
path: |
2024-04-09 01:30:06 +00:00
build/*/*Server*
build/*/*.ini
build/*/*.so
build/*/*.dll
build/*/vanity/
build/*/navmeshes/
build/*/migrations/
build/*/*.dcf
!build/*/*.pdb
!build/*/d*/