mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-08 11:16:51 +00:00
Co-authored-by: semgrep-companion-app[bot] <218312740+semgrep-companion-app[bot]@users.noreply.github.com>
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
name: Setup Conan
|
|
description: "Set up Conan configuration, profile, and remote."
|
|
|
|
inputs:
|
|
remote_name:
|
|
description: "The name of the Conan remote to use."
|
|
required: false
|
|
default: xrplf
|
|
remote_url:
|
|
description: "The URL of the Conan endpoint to use."
|
|
required: false
|
|
default: https://conan.ripplex.io
|
|
|
|
runs:
|
|
using: composite
|
|
|
|
steps:
|
|
- name: Apply custom configuration to global.conf
|
|
shell: bash
|
|
run: |
|
|
cat conan/global.conf ${{ runner.os == 'Linux' && '>>' || '>' }} $(conan config home)/global.conf
|
|
|
|
- name: Show global configuration
|
|
shell: bash
|
|
run: |
|
|
conan config show '*'
|
|
|
|
- name: Install profiles
|
|
shell: bash
|
|
run: |
|
|
conan config install conan/profiles/ -tf $(conan config home)/profiles/
|
|
|
|
- name: Show CI profile
|
|
shell: bash
|
|
run: |
|
|
conan profile show --profile ci
|
|
|
|
- name: Add a remote
|
|
shell: bash
|
|
env:
|
|
REMOTE_NAME: ${{ inputs.remote_name }}
|
|
REMOTE_URL: ${{ inputs.remote_url }}
|
|
run: |
|
|
conan remote add --index 0 --force "${REMOTE_NAME}" "${REMOTE_URL}"
|
|
|
|
- name: List remotes
|
|
shell: bash
|
|
run: |
|
|
conan remote list
|