mirror of
https://github.com/XRPLF/clio.git
synced 2026-06-23 10:36:56 +00:00
31 lines
898 B
Bash
Executable File
31 lines
898 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
CURRENT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
PROFILES_SRC_DIR="$CURRENT_DIR/profiles"
|
|
|
|
CONAN_DIR="${CONAN_HOME:-$HOME/.conan2}"
|
|
PROFILES_DIR="$CONAN_DIR/profiles"
|
|
|
|
rm -rf "$CONAN_DIR"
|
|
|
|
conan remote add --index 0 --force xrplf https://conan.ripplex.io
|
|
|
|
cp "$CURRENT_DIR/global.conf" "$CONAN_DIR/global.conf"
|
|
|
|
mkdir -p "$PROFILES_DIR"
|
|
|
|
# The compiler is selected via the `CC`/`CXX` environment variables (see
|
|
# `.github/actions/set-compiler-env`) and the sanitizers via the `SANITIZERS`
|
|
# environment variable. Builds always use the `ci` profile, which includes
|
|
# `sanitizers` and `default`.
|
|
cp "$PROFILES_SRC_DIR/ci" "$PROFILES_DIR/ci"
|
|
cp "$PROFILES_SRC_DIR/sanitizers" "$PROFILES_DIR/sanitizers"
|
|
|
|
if [[ "$(uname)" == "Darwin" ]]; then
|
|
cp "$PROFILES_SRC_DIR/apple-clang-17.profile" "$PROFILES_DIR/default"
|
|
else
|
|
cp "$PROFILES_SRC_DIR/default" "$PROFILES_DIR/default"
|
|
fi
|