mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-28 16:58:57 +08:00
commit
05743b7dfc
38
.github/workflows/ci.yml
vendored
Normal file
38
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
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 .
|
|
@ -689,7 +689,7 @@ void Platform::open_url(const char* url)
|
|||
system(cmd.cstr());
|
||||
}
|
||||
|
||||
void win32_detect_joysticks()
|
||||
void Blah::win32_detect_joysticks()
|
||||
{
|
||||
// mark all joysticks as unnacounted for
|
||||
for (int i = 0; i < Input::max_controllers; i++)
|
||||
|
|
Loading…
Reference in New Issue
Block a user