-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.24 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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * *'
jobs:
clang-format:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint
uses: DoozyX/clang-format-lint-action@v0.17
with:
clangFormatVersion: 14
build:
needs: clang-format
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Conan
run: pip install conan==2.0.16
- name: Configure Conan
run: conan profile detect
- name: Install Conan packages
run: conan install . --output-folder=build --build=missing --settings compiler=gcc --settings compiler.cppstd=17 --settings build_type=Release
- name: Configure
run: cmake --preset conan-release -DCPACK_PACKAGE_CONTACT="${{ secrets.CONTACT }}"
- name: Build
run: cmake --build --preset conan-release
- name: Test
working-directory: build
run: ctest --verbose --preset conan-release
- name: Pack
working-directory: build
run: cpack -G "DEB"
- name: Publish
uses: actions/upload-artifact@v4
with:
path: build/*.deb