mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
* Implement logging abstraction (#371) Fixes #290 * Fix pre-commit to only check staged files * Implement account ownership check and fix paging (#383) Fixes #222 * Remove the github action package signing step This will be done elsewhere. * include searched_all in error response of tx (#407) * helper function for subscribe to ensure cleanup (#402) * Add closed to header for all paths of ledger_data (#416) Fixes #219 * Add custom error for malformed owner and request (#417) Fixes #274 * Use custom malformedAddress error in ledger_entry (#419) Fixes #272 * Return lgrIdxsInvalid error for ledger_max_index less than ledger_min_index (#339) Fixes #263 * Update headers to use #pragma once * Add custom error for malformed request (#414) Fixes #276 * Return srcCurMalformed on invalid taker_pays in book_offers (#413) Fixes #267 * Fix source_location issue on MacOSX and Debug build (#431) Fixes #428 * Implement always adding git ref to version string (#430) Fixes #427 * add connection counting (#433) * Fix malformed output format over ws rpc (#426) Fixes #405 * Remove branch name from version string (#437) Fixes a bug from #430 * Implement cli parsing using boost::po (#436) Fixes #367 * Update documentation and config with ssl_cert_file and ssl_key_file (#443) Fixes #424 * Fix gateway balances to match rippled output (#441) Fixes #271 * Update README and example config to describe start_sequence (#438) Fixes #250 * Add copyright to top of each source file (#444) Fixes #411 * Increase file descriptor limit (#449) * Update readme with more log configurations (#447) Fixes #446 * Document dos_guard in example config. Log when client surpasses rate limit (#451) * Add unit tests for DOSGuard (#453) Fixes #452 * Build macOS and Ubuntu 22.04 (#456) build release/x.y.z branches * Add time measurement profiler (#458) Rebase * Match format to rippled error code (#461) Fixes #263 * Change error message to match rippled (#463) Fixes #263 * Add requests limit to DosGuard (#462) Fixing #448 * Set version to 1.0.4-rc2 Co-authored-by: Alex Kremer <akremer@ripple.com> Co-authored-by: CJ Cobb <46455409+cjcobb23@users.noreply.github.com> Co-authored-by: Francis Mendoza <francissamuelmendoza7@gmail.com> Co-authored-by: cyan317 <120398799+cindyyan317@users.noreply.github.com>
148 lines
4.0 KiB
YAML
148 lines
4.0 KiB
YAML
name: Build Clio
|
|
on:
|
|
push:
|
|
branches: [master, release/*, develop, develop-next]
|
|
pull_request:
|
|
branches: [master, release/*, develop, develop-next]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Run clang-format
|
|
uses: ./.github/actions/lint
|
|
|
|
build_clio:
|
|
name: Build Clio
|
|
runs-on: [self-hosted, Linux]
|
|
needs: lint
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
type:
|
|
- suffix: deb
|
|
image: rippleci/clio-dpkg-builder:2022-09-17
|
|
script: dpkg
|
|
- suffix: rpm
|
|
image: rippleci/clio-rpm-builder:2022-09-17
|
|
script: rpm
|
|
|
|
container:
|
|
image: ${{ matrix.type.image }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
path: clio
|
|
|
|
- name: Clone Clio packaging repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
path: clio-packages
|
|
repository: XRPLF/clio-packages
|
|
|
|
- name: Build
|
|
shell: bash
|
|
run: |
|
|
export CLIO_ROOT=$(realpath clio)
|
|
if [ ${{ matrix.type.suffix }} == "rpm" ]; then
|
|
source /opt/rh/devtoolset-11/enable
|
|
fi
|
|
cmake -S clio-packages -B clio-packages/build -DCLIO_ROOT=$CLIO_ROOT
|
|
cmake --build clio-packages/build --parallel $(nproc)
|
|
cp ./clio-packages/build/clio-prefix/src/clio-build/clio_tests .
|
|
mv ./clio-packages/build/*.${{ matrix.type.suffix }} .
|
|
|
|
- name: Artifact packages
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: clio_${{ matrix.type.suffix }}_packages
|
|
path: ${{ github.workspace }}/*.${{ matrix.type.suffix }}
|
|
|
|
- name: Artifact clio_tests
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: clio_tests-${{ matrix.type.suffix }}
|
|
path: ${{ github.workspace }}/clio_tests
|
|
|
|
build_dev:
|
|
name: ${{ matrix.os.name }} test
|
|
needs: lint
|
|
continue-on-error: ${{ matrix.os.experimental }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os:
|
|
- name: ubuntu-22.04
|
|
experimental: true
|
|
- name: macos-11
|
|
experimental: true
|
|
- name: macos-12
|
|
experimental: false
|
|
runs-on: ${{ matrix.os.name }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
path: clio
|
|
|
|
- name: Check Boost cache
|
|
id: boost
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: boost
|
|
key: ${{ runner.os }}-boost
|
|
|
|
- name: Build boost
|
|
if: steps.boost.outputs.cache-hit != 'true'
|
|
run: |
|
|
curl -s -OJL "https://boostorg.jfrog.io/artifactory/main/release/1.77.0/source/boost_1_77_0.tar.gz"
|
|
tar zxf boost_1_77_0.tar.gz
|
|
mv boost_1_77_0 boost
|
|
cd boost
|
|
./bootstrap.sh
|
|
if [[ ${{ matrix.os.name }} =~ mac ]];then
|
|
mac_flags='cxxflags="-std=c++14"'
|
|
fi
|
|
./b2 ${mac_flags}
|
|
|
|
- name: install deps
|
|
run: |
|
|
if [[ ${{ matrix.os.name }} =~ mac ]];then
|
|
brew install pkg-config protobuf openssl ninja cassandra-cpp-driver bison
|
|
elif [[ ${{matrix.os.name }} =~ ubuntu ]];then
|
|
sudo apt-get -y install git pkg-config protobuf-compiler libprotobuf-dev libssl-dev wget build-essential doxygen bison flex autoconf clang-format
|
|
fi
|
|
|
|
- name: Build clio
|
|
run: |
|
|
export BOOST_ROOT=$(pwd)/boost
|
|
cd clio
|
|
cmake -B build
|
|
if ! cmake --build build -j$(nproc); then
|
|
echo '# 🔥${{ matrix.os.name }}🔥 failed!💥' >> $GITHUB_STEP_SUMMARY
|
|
fi
|
|
|
|
test_clio:
|
|
name: Test Clio
|
|
runs-on: [self-hosted, Linux]
|
|
needs: build_clio
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
suffix: [rpm, deb]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Get clio_tests artifact
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: clio_tests-${{ matrix.suffix }}
|
|
|
|
- name: Run tests
|
|
timeout-minutes: 10
|
|
uses: ./.github/actions/test
|