fix: improve our docker config #3123
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: 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-20.04, macos-11 ] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Add msbuild to PATH (Windows only) | |
if: ${{ matrix.os == 'windows-2022' }} | |
uses: microsoft/[email protected] | |
with: | |
vs-version: '[17,18)' | |
msbuild-architecture: x64 | |
- name: Install libssl (Mac Only) | |
if: ${{ matrix.os == 'macos-11' }} | |
run: brew install openssl@3 | |
- 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*/ |