Skip to content

Commit f480013

Browse files
committed
Only export modified recipes
1 parent 68dcc19 commit f480013

17 files changed

+53
-278
lines changed

.github/workflows/debian.yml

Lines changed: 0 additions & 104 deletions
This file was deleted.

.github/workflows/export.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Export
2+
3+
on:
4+
push:
5+
paths:
6+
- 'export.yml'
7+
- 'recipes/**'
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
defaults:
14+
run:
15+
shell: bash
16+
17+
env:
18+
# Note that `conan user` implicitly uses the environment variables
19+
# `CONAN_LOGIN_USERNAME_<REMOTE>` and `CONAN_PASSWORD_<REMOTE>`, see also
20+
# https://docs.conan.io/2/reference/environment.html#remote-login-variables.
21+
CONAN_REMOTE_URL: https://conan.ripplex.io
22+
CONAN_REMOTE_NAME: xrplf
23+
CONAN_LOGIN_USERNAME_XRPLF: ${{ secrets.CONAN_USERNAME }}
24+
CONAN_PASSWORD_XRPLF: ${{ secrets.CONAN_PASSWORD }}
25+
CONAN_EXPORTS: >-
26+
protobuf/all
27+
snappy/all
28+
soci/all
29+
30+
jobs:
31+
build:
32+
runs-on: ubuntu-latest
33+
container: ghcr.io/xrplf/ci/debian-bookworm:gcc-12
34+
steps:
35+
- name: Checkout repository
36+
uses: actions/checkout@v4
37+
- name: Add Conan remote
38+
run: |
39+
conan remote list
40+
if conan remote list | grep -q '${{ env.CONAN_REMOTE_NAME }}'; then
41+
conan remote remove ${{ env.CONAN_REMOTE_NAME }}
42+
echo "Removed existing conan remote '${{ env.CONAN_REMOTE_NAME }}'."
43+
fi
44+
conan remote add --index 0 ${{ env.CONAN_REMOTE_NAME }} ${{ env.CONAN_REMOTE_URL }}
45+
echo "Added new conan remote '${{ env.CONAN_REMOTE_NAME }}' at ${{ env.CONAN_REMOTE_URL }}."
46+
- name: Export the recipes
47+
working-directory: recipes
48+
run: |
49+
# Loop over all recipes to export.
50+
IFS=',' read -ra EXPORTS <<< '${{ env.CONAN_EXPORTS }}'
51+
for EXPORT in "${EXPORTS[@]}"; do
52+
conan export "${EXPORT}" --remote ${{ env.CONAN_REMOTE_NAME }}
53+
done

configs/global.conf

Lines changed: 0 additions & 7 deletions
This file was deleted.

configs/recipes/boost-1.86.0.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

configs/recipes/date-3.0.4.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

configs/recipes/doctest-2.4.11.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

configs/recipes/grpc-1.72.0.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

configs/recipes/libarchive-3.8.1.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

configs/recipes/lz4-1.10.0.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

configs/recipes/nudb-2.0.9.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)