Skip to content

Commit 60b6dba

Browse files
Create conan_ci.yml
1 parent 55e2885 commit 60b6dba

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/conan_ci.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Build and Package PizzaTest
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
# 1. Checkout the repo
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
20+
# 2. Install dependencies: Python, Meson, Ninja, Conan
21+
- name: Set up Python
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: "3.11"
25+
26+
- name: Install system packages
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install -y ninja-build pkg-config python3-pip build-essential
30+
31+
- name: Install Meson and Conan
32+
run: |
33+
pip install --upgrade pip
34+
pip install meson==1.3.2 conan==2.3.2
35+
36+
# 3. Configure Conan
37+
- name: Configure Conan
38+
run: |
39+
conan profile new default --detect || true
40+
conan profile update settings.compiler.libcxx=libstdc++11 default
41+
42+
# 4. Install dependencies via Conan (if needed)
43+
- name: Install dependencies
44+
run: conan install . --build=missing
45+
46+
# 5. Build with Meson
47+
- name: Build
48+
run: |
49+
meson setup builddir
50+
meson compile -C builddir
51+
52+
# 6. Run tests (optional)
53+
- name: Test
54+
run: meson test -C builddir
55+
56+
# 7. Package using Conan
57+
- name: Package
58+
run: conan create . pizza_test/1.2.7@

0 commit comments

Comments
 (0)