-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (54 loc) · 1.43 KB
/
ci.yml
File metadata and controls
71 lines (54 loc) · 1.43 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Lint & Test
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
# test:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Install dependencies
# run: sudo apt-get install -y build-essential gcc-multilib g++-multilib
# - name: Install gcovr
# run: pip install gcovr
# - name: Setup project
# run: cmake -S ${TEST_DIR} -B ${BUILD_DIR} -DCMAKE_BUILD_TYPE=Debug
# - name: Build
# run: cmake --build ${BUILD_DIR}
# # - name: Test
# # working-directory: build
# # run: ctest -V
# - name: Test with Coverage
# working-directory: build
# run: cmake --build ${BUILD_DIR} --target os_test_coverage
lint:
runs-on: ubuntu-latest
strategy:
matrix:
folder:
- src
- examples
- tests
steps:
- uses: actions/checkout@v4
- name: Lint ${{ matrix.folder }}
uses: jidicula/clang-format-action@v4.14.0
with:
clang-format-version: "20"
check-path: ${{ matrix.folder }}
increment_version:
name: Increment Version
uses: automas-dev/reusable-workflows/.github/workflows/increment_version.yml@main
if: github.ref == 'refs/heads/main'
secrets: inherit
needs:
# - test
- lint
permissions:
contents: write