Skip to content

Commit 0fed623

Browse files
Create conan_ci.yml
1 parent 0f88354 commit 0fed623

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/conan_ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Conan Build & Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, macos-latest, windows-latest]
15+
build_type: [Release, Debug]
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v3
20+
21+
- name: Setup Python
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: 3.11
25+
26+
- name: Install Conan
27+
run: pip install conan meson ninja
28+
29+
- name: Configure Conan profile
30+
run: |
31+
conan profile new default --detect || true
32+
conan profile update settings.compiler.libcxx=libstdc++11 default || true
33+
34+
- name: Create and build package
35+
run: |
36+
conan create . fossillogic/pizza_test-1.2.7@ \
37+
-s build_type=${{ matrix.build_type }}
38+
39+
- name: Run test package
40+
run: |
41+
mkdir test_package_build && cd test_package_build
42+
conan install ../test_package --build=missing
43+
conan build ../test_package

0 commit comments

Comments
 (0)