Add github workflow & gitignore

This commit is contained in:
Loic Blot 2020-05-18 09:35:38 +02:00 committed by sfan5
parent 08a2846a93
commit 665e4309c4
3 changed files with 28 additions and 2 deletions

22
.github/workflows/build.yml vendored Normal file

@ -0,0 +1,22 @@
name: build
# build on c/cpp changes or workflow changes
on:
- push
- pull_request
jobs:
# This is our minor gcc compiler
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Install deps
run: |
sudo apt-get install g++ gcc libxxf86vm-dev libgl1-mesa-dev -qyy
- name: Build
run: |
cd source/Irrlicht
make sharedlib

4
.gitignore vendored Normal file

@ -0,0 +1,4 @@
*.o
*.d
*.so.*
*.a

@ -261,14 +261,14 @@ Depending on platform you may have to enable _IRR_OGLES1_USE_KHRONOS_API_HEADERS
//! Define _IRR_COMPILE_WITH_OGLES2_ to compile the Irrlicht engine with OpenGL ES 2.0.
/** If you do not wish the engine to be compiled with OpenGL ES 2.0, comment this
define out. */
#define _IRR_COMPILE_WITH_OGLES2_
//#define _IRR_COMPILE_WITH_OGLES2_
#ifdef NO_IRR_COMPILE_WITH_OGLES2_
#undef _IRR_COMPILE_WITH_OGLES2_
#endif
//! Define _IRR_COMPILE_WITH_WEBGL1_ to compile Irrlicht engine with a WebGL friendly
//! subset of the OpenGL ES 2.0 driver.
#define _IRR_COMPILE_WITH_WEBGL1_
//#define _IRR_COMPILE_WITH_WEBGL1_
#ifdef NO_IRR_COMPILE_WITH_WEBGL1_
#undef _IRR_COMPILE_WITH_WEBGL1_
#endif