-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (35 loc) · 1.29 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
name: ci
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Update packages list
run: sudo apt update
- name: Install packages
run: sudo apt install python3-pip -y
- name: Install cpplint
run: pip3 install cpplint
- name: Run cpplint
working-directory: ${{runner.workspace}}/${{github.event.repository.name}}
shell: bash
run: $HOME/.local/bin/cpplint --filter=-legal/copyright,-build/include_subdir,-build/c++11,-build/include_order $(find -name "*.h" -o -name "*.cpp")
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Update packages list
run: sudo apt update
- name: Install packages
run: sudo apt install build-essential libssl-dev curl -y
- name: Install Curl
run: sudo apt-get install libcurl4-openssl-dev
- name: Install CMake
run: sudo snap install cmake --classic
- name: Create Makefile
working-directory: ${{runner.workspace}}/${{github.event.repository.name}}
run: cmake -DCMAKE_BUILD_TYPE=Release ./CMakeLists.txt
- name: Build
working-directory: ${{runner.workspace}}/${{github.event.repository.name}}
run: cmake --build . -j2