Add GitHub CI

This commit is contained in:
David Hrdlička 2020-06-27 15:17:53 +02:00
parent 86183affed
commit d66d62452f

32
.github/workflows/c-cpp.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
strategy:
matrix:
dev-build: ['y', 'n']
new-dynarec: ['y', 'n']
steps:
- uses: msys2/setup-msys2@v1
with:
update: true
msystem: MINGW32
install: 'make mingw-w64-i686-toolchain mingw-w64-i686-openal mingw-w64-i686-freetype mingw-w64-i686-SDL2 mingw-w64-i686-zlib mingw-w64-i686-libpng'
- uses: actions/checkout@v2
- name: make
run: make -fwin/makefile.mingw DEV_BUILD=${{ matrix.dev-build }} NEW_DYNAREC=${{ matrix.new-dynarec }}
working-directory: ./src