CI updates

- Add Windows build
- Run Debug and Release builds on Linux
- Run CI against pull requests
This commit is contained in:
kichikuou
2020-06-04 09:55:15 +09:00
parent 289aebd970
commit a0396679a6
4 changed files with 54 additions and 6 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: Android Build
on: [push]
on: [push, pull_request]
jobs:
build:
+1 -1
View File
@@ -1,5 +1,5 @@
name: Emscripten Build
on: [push]
on: [push, pull_request]
env:
emscripten-version: 1.39.16
+8 -4
View File
@@ -1,10 +1,14 @@
name: Linux Build
on: [push]
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
build-type: ["Debug", "Release"]
name: Linux ${{ matrix.build-type }}
steps:
- uses: actions/checkout@v2
@@ -13,7 +17,7 @@ jobs:
- name: Build
run: |
mkdir -p out/debug
cd out/debug
cmake -DCMAKE_BUILD_TYPE=Debug ../../src/
mkdir -p out/${{ matrix.build-type }}
cd out/${{ matrix.build-type }}
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} ../../src/
make
+44
View File
@@ -0,0 +1,44 @@
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"
- mingw: "MINGW64"
package: "mingw-w64-x86_64"
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
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: |
mkdir -p out/debug
cd out/debug
cmake -G"MSYS Makefiles" -DCMAKE_BUILD_TYPE=Debug ../../src/
make