File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 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@
You can’t perform that action at this time.
0 commit comments