-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) 路 768 Bytes
/
Copy pathci.yml
File metadata and controls
37 lines (29 loc) 路 768 Bytes
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
name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
build_type: [Release, Debug]
steps:
- uses: actions/checkout@v4
- name: Configure CMake
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: Build
run: cmake --build build
- name: Run Tests
working-directory: build
run: ctest --output-on-failure
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check formatting
run: |
find src include -name '*.cpp' -o -name '*.h' | head -5 | xargs -I {} sh -c 'echo "Checking {}"'