-
Notifications
You must be signed in to change notification settings - Fork 83
39 lines (35 loc) · 1010 Bytes
/
c-cpp.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
name: C/C++ CI
# run only on pushes or pull requests to master
# this way you can develop on and push to separate branches without
# using up runner minutes
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-ubuntu:
# default Ubuntu build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: install dep
run: sudo apt-get -y install libglu1-mesa-dev freeglut3-dev mesa-common-dev libglfw3-dev
- name: make
run: make
build-ubuntu-glut:
# Ubuntu build with GLUT graphics
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: install dep
run: sudo apt-get -y install libglu1-mesa-dev freeglut3-dev mesa-common-dev libglfw3-dev
- name: make
run: make GLUT_OR_GLFW=_USE_GLUT_
build-ubuntu-no-graphics:
# Ubuntu build with all graphics disabled
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: make
run: make GUIFLAG=