blah/.github/workflows/ci.yml
SushilRagoonath 181e885598
clean
2022-12-02 14:33:25 +01:00

38 lines
889 B
YAML

name: CI
on:
push:
pull_request:
jobs:
build-ubuntu:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: lukka/get-cmake@latest
- uses: actions/checkout@master
- name: build
run: |
mkdir build
cd build
cmake ../
cmake --build .
build-windows:
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- uses: lukka/get-cmake@latest
- uses: actions/checkout@master
- name: build
run: |
mkdir build
cd build
echo 'Building SDL2 platform'
cmake ../ -DBLAH_PLATFORM_WIN32=OFF -DBLAH_PLATFORM_SDL2=ON
cmake --build .
echo 'Building win32 platform'
cmake ../ -DBLAH_PLATFORM_WIN32=ON -DBLAH_PLATFORM_SDL2=OFF
cmake --build .