Skip to content

Conan package

Conan package #9

Workflow file for this run

name: Build and Package PizzaTest
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
# 1. Checkout the repo
- name: Checkout repository
uses: actions/checkout@v3
# 2. Install dependencies: Python, Meson, Ninja, Conan
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install system packages
run: |
sudo apt-get update
sudo apt-get install -y ninja-build pkg-config python3-pip build-essential
- name: Install Meson and Conan
run: |
pip install --upgrade pip
pip install meson==1.3.2 conan==2.3.2
# 3. Configure Conan
- name: Configure Conan
run: |
conan profile new default --detect || true
conan profile update settings.compiler.libcxx=libstdc++11 default
# 4. Install dependencies via Conan (if needed)
- name: Install dependencies
run: conan install . --build=missing
# 5. Build with Meson
- name: Build
run: |
meson setup builddir
meson compile -C builddir
# 6. Run tests (optional)
- name: Test
run: meson test -C builddir
# 7. Package using Conan
- name: Package
run: conan create . pizza_test/1.2.7@