-
-
Notifications
You must be signed in to change notification settings - Fork 163
44 lines (41 loc) · 1.15 KB
/
linux-conan.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
name: conan
on:
push:
branches:
- 'main'
workflow_dispatch:
pull_request:
env:
CC: gcc-13
CXX: g++-13
jobs:
conan:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install conan and ninja
run: pip install conan ninja
- name: Configure Conan profile
run: |
conan profile detect
- name: Install dependencies
run: conan install conanfile.txt -r conancenter -s compiler.cppstd=20 --build=missing
- name: CMake configure
run: |
cmake -G Ninja \
-DUSE_SYSTEM_DEPENDENCIES:BOOL=ON \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DCMAKE_CXX_COMPILER=g++-13 \
-DCMAKE_C_COMPILER=gcc-13 \
-DBUILD_TESTING:BOOL=ON \
--preset=conan-release
- name: CMake Build
run: cmake --build --preset=conan-release
- name: Run unit tests
working-directory: ${{github.workspace}}/build/Release/tests
run: ctest --print-output-on-failure