Repository navigation
106 lines (87 loc) · 2.53 KB
/
Copy pathpackage-managers.yml
File metadata and controls
106 lines (87 loc) · 2.53 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# SPDX-FileCopyrightText: 2026 Jarosław Pelczar <jarek@jpelczar.com>
#
# SPDX-License-Identifier: BSD-2-Clause
name: Package managers
on:
push:
paths:
- CMakeLists.txt
- cmake/**
- conanfile.py
- include/**
- packaging/**
- test_package/**
- tests/cmake/**
- .github/workflows/package-managers.yml
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
- converted_to_draft
paths:
- CMakeLists.txt
- cmake/**
- conanfile.py
- include/**
- packaging/**
- test_package/**
- tests/cmake/**
- .github/workflows/package-managers.yml
workflow_dispatch:
permissions:
contents: read
concurrency:
group: package-managers-${{ github.ref }}
cancel-in-progress: true
jobs:
conan:
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-26.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- name: Install Conan
run: python -m pip install --disable-pip-version-check conan
- name: Create package
env:
CC: clang
CXX: clang++
run: ./scripts/check-conan-package.sh
vcpkg:
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-26.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- name: Bootstrap vcpkg
run: |
git clone --depth 1 https://github.com/microsoft/vcpkg.git \
"$RUNNER_TEMP/vcpkg"
"$RUNNER_TEMP/vcpkg/bootstrap-vcpkg.sh" -disableMetrics
- name: Install and consume overlay port
env:
CC: clang
CXX: clang++
VCPKG_ROOT: ${{ runner.temp }}/vcpkg
run: ./scripts/check-vcpkg-package.sh -DCMAKE_CXX_COMPILER=clang++
cpm:
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-26.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- name: Build and run consumer
run: ./scripts/check-cpm-package.sh -DCMAKE_CXX_COMPILER=clang++
cpack:
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-26.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- name: Build and verify packages
run: ./scripts/check-cpack-package.sh -DCMAKE_CXX_COMPILER=clang++