-
Notifications
You must be signed in to change notification settings - Fork 36
38 lines (33 loc) · 862 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
name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install prerequisites
run: |
sudo apt-get -y update
sudo apt-get -y install \
build-essential \
libgl1-mesa-dev \
libcurl4-openssl-dev \
zlib1g-dev \
libsdl2-dev \
libsdl2-image-dev \
libsdl2-mixer-dev \
libsdl2-ttf-dev
- name: create build-dir
run: mkdir CGenius-Build
- name: cd build-dir
run: cd CGenius-Build
- name: CMake
run: cmake ./ -DUSE_BOOST=0
- name: make
run: make
- name: sudo make install
run: sudo make install