Skip to content

Commit e9533c6

Browse files
authored
Export protobuf, snappy, and soci dependencies (#3)
This PR exports the Conan recipes used by `rippled` that we have patched, namely `protobuf`, `snappy`, and `soci`.
1 parent 01ebd89 commit e9533c6

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/export.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Export
2+
3+
on:
4+
push:
5+
paths:
6+
- '.github/workflows/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+
CONAN_REMOTE_URL: https://conan.ripplex.io
19+
CONAN_REMOTE_NAME: xrplf
20+
21+
jobs:
22+
export:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
- name: Install Conan
28+
uses: conan-io/setup-conan@v1
29+
- name: Add Conan remote
30+
run: |
31+
conan remote add --index 0 ${{ env.CONAN_REMOTE_NAME }} ${{ env.CONAN_REMOTE_URL }}
32+
echo "Added new conan remote '${{ env.CONAN_REMOTE_NAME }}' at ${{ env.CONAN_REMOTE_URL }}."
33+
- name: Log into Conan remote
34+
run: |
35+
conan remote login ${{ env.CONAN_REMOTE_NAME }} ${{ secrets.CONAN_USERNAME }} --password "${{ secrets.CONAN_PASSWORD }}"
36+
conan remote list-users
37+
- name: Export the recipes
38+
working-directory: recipes
39+
run: |
40+
conan export protobuf/all --version=6.30.1
41+
conan export snappy/all --version=1.1.10
42+
conan export soci/all --version=4.0.3
43+
- name: Upload the recipes
44+
run: |
45+
conan upload '*' --confirm --check --only-recipe \
46+
--remote ${{ env.CONAN_REMOTE_NAME }} \
47+
${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch && '' || '--dry-run'}}

0 commit comments

Comments
 (0)