-
Notifications
You must be signed in to change notification settings - Fork 84
53 lines (48 loc) · 1.2 KB
/
ccpp.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
51
52
53
name: C/C++ CI
on: [push, pull_request]
jobs:
build-ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [g++, clang++]
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: ./scripts/install_deps.sh
- name: Configure
env:
CXX: ${{ matrix.compiler }}
run: ./configure Debug
- name: Build
run: cmake --build build
- name: Tests
run: ./scripts/run_tests.sh
lint-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
- run: pip install cpplint
- run: ./scripts/lint.sh
single-header-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: |
./scripts/install_deps.sh
pip3 install -r simul/requirements.txt
- name: Generate single header
run: python3 simul/simul.py
- name: Configure
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DSINGLE_H=ON ..
- name: Build
run: cmake --build build
- uses: actions/upload-artifact@v2
if: success()
with:
path: include/shadesmar.h