-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 1.18 KB
/
build.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: build
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install cmake clang-format clang-tidy
sudo apt-get install libpthread-stubs0-dev libgl1-mesa-dev libx11-dev libxrandr-dev libfreetype6-dev libjpeg8-dev libsndfile1-dev libopenal-dev libudev-dev libxinerama-dev libxcursor-dev libxi-dev
- name: Install SFML
run: |
git clone https://github.com/SFML/SFML.git SFML
cd SFML
mkdir build && cd build
cmake -DBUILD_SHARED_LIBS=ON ..
make
sudo make install
cd ../..
- name: Install pugixml
run: |
git clone https://github.com/zeux/pugixml.git pugixml
cd pugixml
mkdir build && cd build
cmake -DBUILD_SHARED_LIBS=ON ..
make
sudo make install
cd ../..
- name: Run clang-format
run: clang-format --dry-run --Werror src/*
- name: Run CMake
run: cmake -S. -Bbuild
- name: Run Make
run: make -Cbuild