mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-28 09:48:05 +03:00
61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
name: Windows Build
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-2019
|
|
strategy:
|
|
matrix:
|
|
mingw: ["MINGW32", "MINGW64"]
|
|
include:
|
|
- mingw: "MINGW32"
|
|
package: "mingw-w64-i686"
|
|
installer: "xsystem35-32bit"
|
|
- mingw: "MINGW64"
|
|
package: "mingw-w64-x86_64"
|
|
installer: "xsystem35-64bit"
|
|
defaults:
|
|
run:
|
|
shell: bash.exe --login -eo pipefail "{0}"
|
|
env:
|
|
MSYSTEM: ${{ matrix.mingw }}
|
|
CHERE_INVOKING: 1
|
|
name: MSYS2 ${{ matrix.mingw }}
|
|
steps:
|
|
|
|
- name: Set up shell
|
|
run: echo ::add-path::C:\msys64\usr\bin\
|
|
shell: pwsh
|
|
|
|
- name: Print system version
|
|
run: |
|
|
uname
|
|
echo PATH: $PATH
|
|
|
|
- name: Install Deps
|
|
run: pacman -S --noconfirm ${{ matrix.package }}-SDL2 ${{ matrix.package }}-SDL2_ttf ${{ matrix.package }}-SDL2_mixer ${{ matrix.package }}-libjpeg-turbo ${{ matrix.package }}-nsis ${{ matrix.package }}-ntldd-git
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
run: |
|
|
mkdir -p out/release
|
|
cd out/release
|
|
cmake -G"MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release ../../
|
|
make
|
|
|
|
- name: Test
|
|
run: ctest --output-on-failure
|
|
working-directory: out/release
|
|
|
|
- name: Package
|
|
working-directory: installer
|
|
run: ./make-installer.sh ../out/release ${{ matrix.installer }}.nsi
|
|
|
|
- name: Upload
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: ${{ matrix.installer }}
|
|
path: installer/${{ matrix.installer }}.exe
|