-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (29 loc) · 941 Bytes
/
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
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 install cmake clang-format clang-tidy
sudo apt-get install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev
- name: Install Raylib
run: |
git clone https://github.com/raysan5/raylib.git raylib
cd raylib
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/**/*.*pp
- name: Run CMake
run: cmake -S. -Bbuild
- name: Run Make
run: make -Cbuild
- name: Run clang-tidy
run: clang-tidy src/**/*.*pp -p build/