blah/.github/workflows/ci.yml

38 lines
889 B
YAML
Raw Normal View History

2022-12-02 21:20:16 +08:00
name: CI
on:
push:
pull_request:
jobs:
2022-12-02 21:26:55 +08:00
build-ubuntu:
2022-12-02 21:20:16 +08:00
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: lukka/get-cmake@latest
- uses: actions/checkout@master
2022-12-02 21:33:25 +08:00
- name: build
2022-12-02 21:20:16 +08:00
run: |
mkdir build
cd build
cmake ../
2022-12-02 21:26:55 +08:00
cmake --build .
build-windows:
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- uses: lukka/get-cmake@latest
- uses: actions/checkout@master
2022-12-02 21:33:25 +08:00
- name: build
2022-12-02 21:26:55 +08:00
run: |
mkdir build
cd build
echo 'Building SDL2 platform'
2022-12-02 21:33:25 +08:00
cmake ../ -DBLAH_PLATFORM_WIN32=OFF -DBLAH_PLATFORM_SDL2=ON
2022-12-02 21:26:55 +08:00
cmake --build .
echo 'Building win32 platform'
cmake ../ -DBLAH_PLATFORM_WIN32=ON -DBLAH_PLATFORM_SDL2=OFF
2022-12-02 21:20:16 +08:00
cmake --build .