Skip to content

Commit b1b41a7

Browse files
committed
Add remote
1 parent 110e00e commit b1b41a7

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

.github/workflows/debian.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@ defaults:
1515
shell: bash
1616

1717
env:
18-
CONAN_URL: ${{ secrets.CONAN_URL }}
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
1923
CONAN_LOGIN_USERNAME_XRPLF: ${{ secrets.CONAN_USERNAME }}
2024
CONAN_PASSWORD_XRPLF: ${{ secrets.CONAN_PASSWORD }}
2125
CONAN_GLOBAL_CONF: |
26+
core:non_interactive=True
2227
core.download:parallel={{ os.cpu_count() }}
2328
core.upload:parallel={{ os.cpu_count() }}
2429
core:default_build_profile=default
@@ -81,8 +86,10 @@ jobs:
8186
- type: Debug
8287
# - type: Release
8388
package:
84-
- name: rocksdb
85-
version: 10.0.1
89+
- name: snappy
90+
version: 1.1.10
91+
# - name: rocksdb
92+
# version: 10.0.1
8693
runs-on: ${{ matrix.architecture.runner }}
8794
container: ${{ matrix.docker.image }}
8895
steps:
@@ -92,6 +99,19 @@ jobs:
9299
run: |
93100
echo "${CONAN_GLOBAL_CONF}" >> $(conan config home)/global.conf
94101
conan config install profiles/ -tf $(conan config home)/profiles/
102+
- name: Add Conan remote
103+
run: |
104+
conan remote list
105+
if conan remote list | grep -q '${{ env.CONAN_REMOTE_NAME }}'; then
106+
conan remote remove ${{ env.CONAN_REMOTE_NAME }}
107+
echo "Removed existing conan remote '${{ env.CONAN_REMOTE_NAME }}'."
108+
fi
109+
conan remote add --index 0 ${{ env.CONAN_REMOTE_NAME }} ${{ env.CONAN_REMOTE_URL }}
110+
echo "Added new conan remote '${{ env.CONAN_REMOTE_NAME }}' at ${{ env.CONAN_REMOTE_URL }}."
111+
- name: Verify Conan remote
112+
run: |
113+
conan remote auth ${{ env.CONAN_REMOTE_NAME }} --force
114+
conan remote list-users
95115
- name: Build the recipe
96116
working-directory: recipes/${{ matrix.package.name }}/all
97117
run: |
@@ -104,6 +124,6 @@ jobs:
104124
- name: Upload the recipe
105125
run: |
106126
conan upload '${{ matrix.package.name }}' \
107-
--remote ${{ env.CONAN_URL }} \
127+
--remote ${{ var.CONAN_URL }} \
108128
--confirm \
109129
--dry-run

0 commit comments

Comments
 (0)