mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-10-12 09:08:23 +03:00
58 lines
1.2 KiB
YAML
58 lines
1.2 KiB
YAML
name: Windows Build
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- sys: MINGW32
|
|
package: "xsystem35-32bit"
|
|
cmake_args: "-DENABLE_DEBUGGER=no"
|
|
deps: ""
|
|
- sys: UCRT64
|
|
package: "xsystem35-64bit"
|
|
cmake_args: ""
|
|
deps: "cjson:p"
|
|
defaults:
|
|
run:
|
|
shell: msys2 {0}
|
|
name: MSYS2 ${{ matrix.sys }}
|
|
steps:
|
|
|
|
- name: Set up MSYS2
|
|
uses: msys2/setup-msys2@v2
|
|
with:
|
|
msystem: ${{ matrix.sys }}
|
|
pacboy: >-
|
|
gcc:p
|
|
cmake:p
|
|
ninja:p
|
|
SDL2:p
|
|
SDL2_ttf:p
|
|
SDL2_mixer:p
|
|
libwebp:p
|
|
${{ matrix.deps }}
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Build
|
|
run: |
|
|
mkdir -p out/release
|
|
cd out/release
|
|
cmake -G"Ninja" -DCMAKE_BUILD_TYPE=Release ${{ matrix.cmake_args }} ../../
|
|
ninja
|
|
|
|
- name: Test
|
|
run: ctest --output-on-failure
|
|
working-directory: out/release
|
|
|
|
- name: Upload
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: ${{ matrix.package }}
|
|
path: out/release/src/xsystem35.exe
|