mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-08 14:58:13 +03:00
CI updates
- Add Windows build - Run Debug and Release builds on Linux - Run CI against pull requests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user