forked from Towerism/conan-example
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.18 KB
/
makefile.yml
File metadata and controls
50 lines (43 loc) · 1.18 KB
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
name: Makefile CI
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'src'
- 'libs'
- 'test'
steps:
- uses: actions/checkout@v3
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/clang-format-action@v4.9.0
with:
clang-format-version: '13'
check-path: ${{ matrix.path }}
fallback-style: 'Mozilla' # optional
setup:
runs-on: ubuntu-latest
name: build & test
needs: [ formatting-check ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
# Check if GitHub Cache has it, because that's free
- name: Using the builtin GitHub Cache Action for .conan
id: github-cache-conan
uses: actions/cache@v1
env:
cache-name: cache-conan-modules
with:
path: ~/.conan/
key: host-${{ runner.os }}-target-${{ runner.os }}-${{ hashFiles('conanfile.py') }}
- run: bash -x ./ci/build.sh
- run: make test