forked from exness/userver
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 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
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@v3
with:
fetch-depth: 0
- name: Reuse ccache directory
uses: actions/cache@v2
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>=1.51.0,<2.0.0"
conan profile new --detect default && conan profile update settings.compiler.libcxx=libstdc++11 default
- name: Setup ccache
run: |
ccache -M 2.0GB
ccache -s
- name: Run conan
run: |
conan create . --build=missing -pr:b=default -tf conan/test_package/