Files
kichikuou_system3-sdl2/.github/workflows/windows-msvc.yml
T
2025-01-20 10:10:48 +09:00

37 lines
879 B
YAML

name: Windows (MSVS) Build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
arch: ["Win32", "x64"]
include:
- arch: "Win32"
package: "system3-sdl2-msvc-32bit"
- arch: "x64"
package: "system3-sdl2-msvc-64bit"
name: MSVS ${{ matrix.arch }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: |
mkdir out
cd out
cmake -G "Visual Studio 17 2022" -A ${{ matrix.arch }} -DCMAKE_COMPILE_WARNING_AS_ERROR=YES ../
cmake --build . --config Release
cmake --install . --prefix artifacts
cp ../COPYING.txt artifacts/
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.package }}
path: out/artifacts