-
Notifications
You must be signed in to change notification settings - Fork 55
81 lines (74 loc) · 2.68 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
- os: macos-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Add brew packages
if: matrix.os == 'macos-latest'
shell: bash
run: brew install sdl2 glew
- name: Add apt packages
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends libxrandr-dev libxi-dev libxxf86vm-dev libsdl2-dev libglew-dev
- name: Build OSX
if: matrix.os == 'macos-latest'
run: |
clang++ -std=c++11 -stdlib=libc++ imgui/examples/example_sdl2_opengl3/main.cpp \
imgui/backends/imgui_impl_opengl3.cpp \
imgui/backends/imgui_impl_sdl2.cpp \
imgui/imgui.cpp imgui/imgui_draw.cpp imgui/imgui_tables.cpp \
imgui/imgui_widgets.cpp imgui/imgui_demo.cpp \
FileBrowser/ImGuiFileBrowser.cpp \
-DIMGUI_IMPL_OPENGL_LOADER_GLEW \
-I imgui \
-I imgui/examples \
-I imgui/backends \
-I /usr/local/include/SDL2 \
-lSDL2 -lGLEW \
-framework OpenGL \
-o example_sdl2_opengl3
- name: Build Linux
if: matrix.os == 'ubuntu-latest'
run: |
clang++ imgui/examples/example_sdl2_opengl3/main.cpp \
imgui/backends/imgui_impl_opengl3.cpp \
imgui/backends/imgui_impl_sdl2.cpp \
imgui/imgui.cpp imgui/imgui_draw.cpp imgui/imgui_tables.cpp \
imgui/imgui_widgets.cpp imgui/imgui_demo.cpp \
FileBrowser/ImGuiFileBrowser.cpp \
-DIMGUI_IMPL_OPENGL_LOADER_GLEW \
-I imgui \
-I imgui/examples \
-I imgui/backends \
-I /usr/include/SDL2 \
-lSDL2 -lGL -lGLEW -ldl \
-o example_sdl2_opengl3
g++ imgui/examples/example_sdl2_opengl3/main.cpp \
imgui/backends/imgui_impl_opengl3.cpp \
imgui/backends/imgui_impl_sdl2.cpp \
imgui/imgui.cpp imgui/imgui_draw.cpp imgui/imgui_tables.cpp \
imgui/imgui_widgets.cpp imgui/imgui_demo.cpp \
FileBrowser/ImGuiFileBrowser.cpp \
-DIMGUI_IMPL_OPENGL_LOADER_GLEW \
-I imgui \
-I imgui/examples \
-I imgui/backends \
-I /usr/include/SDL2 \
-lSDL2 -lGL -lGLEW -ldl \
-o example_sdl2_opengl3