Skip to content

Commit a6667ba

Browse files
committed
Build packages sequentially using option files
1 parent fddd2e7 commit a6667ba

File tree

17 files changed

+58
-87
lines changed

17 files changed

+58
-87
lines changed

.github/workflows/debian.yml

Lines changed: 26 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -30,67 +30,27 @@ jobs:
3030
matrix:
3131
architecture:
3232
- runner: ubuntu-24.04
33-
- runner: ubuntu-24.04-arm
33+
# - runner: ubuntu-24.04-arm
3434
docker:
3535
- image: ghcr.io/xrplf/ci/debian-bookworm:gcc-12
36-
- image: ghcr.io/xrplf/ci/debian-bookworm:gcc-13
37-
- image: ghcr.io/xrplf/ci/debian-bookworm:gcc-14
38-
- image: ghcr.io/xrplf/ci/debian-bookworm:clang-16
39-
- image: ghcr.io/xrplf/ci/debian-bookworm:clang-17
40-
- image: ghcr.io/xrplf/ci/debian-bookworm:clang-18
41-
- image: ghcr.io/xrplf/ci/debian-bookworm:clang-19
42-
- image: ghcr.io/xrplf/ci/debian-bookworm:clang-20
36+
# - image: ghcr.io/xrplf/ci/debian-bookworm:gcc-13
37+
# - image: ghcr.io/xrplf/ci/debian-bookworm:gcc-14
38+
# - image: ghcr.io/xrplf/ci/debian-bookworm:clang-16
39+
# - image: ghcr.io/xrplf/ci/debian-bookworm:clang-17
40+
# - image: ghcr.io/xrplf/ci/debian-bookworm:clang-18
41+
# - image: ghcr.io/xrplf/ci/debian-bookworm:clang-19
42+
# - image: ghcr.io/xrplf/ci/debian-bookworm:clang-20
4343
build:
4444
- type: Debug
45-
- type: Release
46-
package:
47-
- name: boost
48-
version: 1.86.0
49-
directory: all
50-
- name: date
51-
version: 3.0.4
52-
directory: all
53-
- name: doctest
54-
version: 2.4.11
55-
directory: 2.x.x
56-
- name: grpc
57-
version: 1.72.0
58-
directory: all
59-
- name: libarchive
60-
version: 3.8.1
61-
directory: all
62-
- name: lz4
63-
version: 1.10.0
64-
directory: all
65-
- name: nudb
66-
version: 2.0.9
67-
directory: all
68-
- name: openssl
69-
version: 1.1.1w
70-
directory: 1.x.x
71-
- name: protobuf
72-
version: 6.30.1
73-
directory: all
74-
- name: rocksdb
75-
version: 10.0.1
76-
directory: all
77-
- name: sqlite3
78-
version: 3.49.1
79-
directory: all
80-
- name: xxhash
81-
version: 0.8.3
82-
directory: all
83-
- name: zlib
84-
version: 1.3.1
85-
directory: all
45+
# - type: Release
8646
runs-on: ${{ matrix.architecture.runner }}
8747
container: ${{ matrix.docker.image }}
8848
steps:
8949
- name: Checkout repository
9050
uses: actions/checkout@v4
9151
- name: Configure Conan
9252
run: |
93-
cat config/global.conf >> $(conan config home)/global.conf
53+
cat configs/global.conf >> $(conan config home)/global.conf
9454
conan config install profiles/ -tf $(conan config home)/profiles/
9555
- name: Add Conan remote
9656
run: |
@@ -105,23 +65,29 @@ jobs:
10565
run: |
10666
conan remote auth ${{ env.CONAN_REMOTE_NAME }} --force
10767
conan remote list-users
108-
- name: Build the recipe
109-
working-directory: recipes/${{ matrix.package.name }}/${{ matrix.package.directory }}
68+
- name: Build the recipes
69+
working-directory: recipes
11070
run: |
111-
conan create . \
112-
--version ${{ matrix.package.version }} \
113-
--build=missing \
114-
--settings:all=build_type=${{ matrix.build.type }} \
115-
--update \
116-
$(cat config/options.conf | tr '\n' ' ')
117-
- name: Upload the recipe (dry-run)
71+
# Loop over all recipe option files in the `options` directory.
72+
for opts in ../options/*; do
73+
filename=${##../opts/}
74+
recipe=${filename%.options}
75+
echo "Building recipe '${recipe}'."
76+
conan create . \
77+
--build=missing \
78+
--settings:all=build_type=${{ matrix.build.type }} \
79+
--update \
80+
-o shared=False -o fPIC=True \
81+
$(cat $package)
82+
done
83+
- name: Upload the recipes (dry-run)
11884
if: ${{ github.ref_type == 'branch' && github.ref_name != github.event.repository.default_branch }}
11985
run: |
12086
conan upload '*' \
12187
--remote ${{ env.CONAN_REMOTE_NAME }} \
12288
--confirm \
12389
--dry-run
124-
- name: Upload the recipe
90+
- name: Upload the recipes
12591
if: ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
12692
run: |
12793
conan upload '*' \

config/options.conf

Lines changed: 0 additions & 27 deletions
This file was deleted.
File renamed without changes.

options/boost.options

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
all --version 1.86.0

options/date.options

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
all --version=3.0.4 -o header_only=True

options/doctest.options

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.x.x --version=2.4.11

options/grpc.options

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
all --version=1.72.0 -o secure=True

options/libarchive.options

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
all --version=3.8.1 -o with_acl=False \
2+
-o with_bzip2=False \
3+
-o with_cng=False \
4+
-o with_expat=False \
5+
-o with_iconv=False \
6+
-o with_libxml2=False \
7+
-o with_lz4=True \
8+
-o with_lzma=False \
9+
-o with_lzo=False \
10+
-o with_nettle=False \
11+
-o with_openssl=False \
12+
-o with_pcreposix=False \
13+
-o with_xattr=False \
14+
-o with_zlib=False

options/lz4.options

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
all --version=1.10.0

options/nudb.options

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
all --version=2.0.9

0 commit comments

Comments
 (0)