-
Notifications
You must be signed in to change notification settings - Fork 288
53 lines (45 loc) · 1.48 KB
/
ci-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
45
46
47
48
49
50
51
52
53
name: Conan
'on':
pull_request:
push:
branches:
- master
- develop
- feature/**
env:
UBSAN_OPTIONS: print_stacktrace=1
jobs:
build:
runs-on: ubuntu-${{ matrix.ubuntu_version }}
name: Ubuntu-${{ matrix.ubuntu_version }}
strategy:
fail-fast: false
matrix:
ubuntu_version: [22.04]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Reuse ccache directory
uses: actions/cache@v4
with:
path: ~/.ccache
key: '${{matrix.os}} ${{matrix.info}} ccache-dir ${{github.ref}} run-${{github.run_number}}'
restore-keys: |
${{matrix.os}} ${{matrix.info}} ccache-dir ${{github.ref}} run-'
${{matrix.os}} ${{matrix.info}} ccache-
- name: Install packages
run: |
sudo apt-get install -y gcc g++ cmake wget git python3 python3-pip python3-venv ccache
pip install "conan==2.8.0"
pip install numpy
conan profile detect
conan profile show
- name: Setup ccache
run: |
ccache -M 2.0GB
ccache -s
- name: Run conan
run: |
conan create . --build=missing -s:a compiler.cppstd=17 -pr:b=default -tf conan/test_package/