-
Notifications
You must be signed in to change notification settings - Fork 25
45 lines (37 loc) · 1.35 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
name: ci-conan
on: [pull_request, workflow_dispatch]
jobs:
ci-conan-gcc-13:
name: ci-conan-${{ matrix.conan_version }}-g++-13-static-release
runs-on: ubuntu-24.04
strategy:
matrix:
conan_version: [1.64.1, 2.4.1]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Cache Conan packages
uses: actions/[email protected]
env:
cache-name: cache-conan-packages
with:
path: ~/.conan2 ~/.conan
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('conanfile.py') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Conan
run: python -m pip install conan==${{ matrix.conan_version }}
- name: Detect Conan 1.x profile
if: matrix.conan_version == '1.64.1'
run: conan profile new --detect --force gcc-13
- name: Detect Conan 2.x profile
if: matrix.conan_version == '2.4.1'
run: conan profile detect --force --name=gcc-13
- name: Build Conan package
run: conan create -r conancenter conanfile.py -pr:b gcc-13 -pr:h gcc-13 --build=missing --build="beauty/*"