28 lines
877 B
YAML
28 lines
877 B
YAML
|
name: Build (MSVC)
|
||
|
|
||
|
on: [push, pull_request]
|
||
|
|
||
|
jobs:
|
||
|
Build:
|
||
|
name: ${{ matrix.platform.name }}
|
||
|
runs-on: windows-latest
|
||
|
|
||
|
strategy:
|
||
|
fail-fast: false
|
||
|
matrix:
|
||
|
platform:
|
||
|
- { name: Windows (x64), flags: -A x64 }
|
||
|
- { name: Windows (x86), flags: -A Win32 }
|
||
|
- { name: Windows (clang-cl x64), flags: -T ClangCL -A x64 }
|
||
|
- { name: Windows (clang-cl x86), flags: -T ClangCL -A Win32 }
|
||
|
- { name: Windows (ARM64), flags: -A ARM64 }
|
||
|
- { name: UWP (x64), flags: -A x64 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0" -DSDL_TEST=OFF }
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- name: Configure CMake
|
||
|
run: cmake -B build -DSDL_TEST=ON ${{ matrix.platform.flags }}
|
||
|
- name: Build CMake
|
||
|
run: cmake --build build/ --config Release --parallel
|
||
|
|