Skip to content
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
4dece23
ci: [DEPENDABOT] Bump docker/setup-buildx-action from 3.11.1 to 3.12.…
dependabot[bot] Dec 22, 2025
8da4194
style: clang-tidy auto fixes (#2874)
github-actions[bot] Dec 22, 2025
8503335
ci: [DEPENDABOT] Bump docker/setup-buildx-action from 3.11.1 to 3.12.…
dependabot[bot] Dec 22, 2025
2c9c563
ci: [DEPENDABOT] Bump actions/cache from 4.3.0 to 5.0.1 (#2871)
dependabot[bot] Dec 23, 2025
79c08fc
style: Update pre-commit hooks (#2875)
github-actions[bot] Jan 5, 2026
9f76eab
feat: Option to save cache asyncronously (#2883)
kuznetsss Jan 7, 2026
a9787b1
feat: Basic support for channels (#2859)
godexsoft Jan 8, 2026
c9df784
ci: Use updated prepare-runner in actions and worfklows (#2889)
bthomee Jan 8, 2026
b0abe14
style: clang-tidy auto fixes (#2891)
github-actions[bot] Jan 9, 2026
c0c5c14
chore: Fix branch name and commit SHA for GitHub PRs (#2888)
mathbunnyru Jan 9, 2026
bb3159b
feat: Add build information to `clio_server --version` (#2893)
mathbunnyru Jan 9, 2026
bb39bce
style: Fix clang-tidy error (#2901)
kuznetsss Jan 12, 2026
88866ea
fix: No output from failed asserts in tests (#2905)
kuznetsss Jan 12, 2026
a7ac7b5
ci: Show ccache stats with `-vv` (#2902)
mathbunnyru Jan 12, 2026
e733fad
ci: Pass version explicitly and don't rely on tags (#2904)
mathbunnyru Jan 12, 2026
f33f15c
fix: Workaround an edge case exception in `AmendmentCenter` (#2897)
godexsoft Jan 13, 2026
c6be761
fix: Faster implementation of work queue (#2887)
godexsoft Jan 13, 2026
1590248
chore: Update gtest and spdlog (#2908)
mathbunnyru Jan 13, 2026
14342e0
chore: Update tooling in Docker images (#2907)
mathbunnyru Jan 13, 2026
95712c2
ci: Use images/actions with new tools / conan / cmake (#2909)
mathbunnyru Jan 13, 2026
cd93b2a
chore: Use actual build date instead of date of last commit for `BUIL…
mathbunnyru Jan 13, 2026
2328388
ci: Use env for BUILD_TYPE in reusable-build.yml (#2913)
mathbunnyru Jan 13, 2026
6f6d8cd
ci: Change build date format (#2914)
mathbunnyru Jan 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/build-docker-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ runs:
- uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
with:
cache-image: false
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0

- uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
id: meta
Expand Down
17 changes: 17 additions & 0 deletions .github/actions/cmake/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ inputs:
description: Whether to generate Debian package
required: true
default: "false"
version:
description: Version of the clio_server binary
required: false
default: ""

runs:
using: composite
Expand All @@ -57,6 +61,19 @@ runs:
STATIC: "${{ inputs.static == 'true' && 'ON' || 'OFF' }}"
TIME_TRACE: "${{ inputs.time_trace == 'true' && 'ON' || 'OFF' }}"
PACKAGE: "${{ inputs.package == 'true' && 'ON' || 'OFF' }}"
# GitHub creates a merge commit for a PR
# https://www.kenmuse.com/blog/the-many-shas-of-a-github-pull-request/
#
# We:
# - explicitly provide branch name
# - use `github.head_ref` to get the SHA of last commit in the PR branch
#
# This way it works both for PRs and pushes to branches.
GITHUB_BRANCH_NAME: "${{ github.head_ref || github.ref_name }}"
GITHUB_HEAD_SHA: "${{ github.event.pull_request.head.sha || github.sha }}"
#
# If tag is being pushed, or it's a nightly release, we use that version.
FORCE_CLIO_VERSION: ${{ inputs.version }}
run: |
cmake \
-B "${BUILD_DIR}" \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-libxrpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
fetch-depth: 0

- name: Prepare runner
uses: XRPLF/actions/prepare-runner@2ece4ec6ab7de266859a6f053571425b2bd684b6
uses: XRPLF/actions/prepare-runner@65da1c59e81965eeb257caa3587b9d45066fb925
with:
disable_ccache: true
enable_ccache: false

- name: Update libXRPL version requirement
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:
fetch-depth: 0

- name: Prepare runner
uses: XRPLF/actions/prepare-runner@2ece4ec6ab7de266859a6f053571425b2bd684b6
uses: XRPLF/actions/prepare-runner@65da1c59e81965eeb257caa3587b9d45066fb925
with:
disable_ccache: true
enable_ccache: false

- name: Run conan
uses: ./.github/actions/conan
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
lfs: true

- name: Prepare runner
uses: XRPLF/actions/prepare-runner@2ece4ec6ab7de266859a6f053571425b2bd684b6
uses: XRPLF/actions/prepare-runner@65da1c59e81965eeb257caa3587b9d45066fb925
with:
disable_ccache: true
enable_ccache: false

- name: Create build directory
run: mkdir build_docs
Expand Down
28 changes: 17 additions & 11 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,20 @@ defaults:
shell: bash

jobs:
get_date:
name: Get Date
runs-on: ubuntu-latest
outputs:
date: ${{ steps.get_date.outputs.date }}
steps:
- name: Get current date
id: get_date
run: |
echo "date=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT

build-and-test:
name: Build and Test
needs: get_date

strategy:
fail-fast: false
Expand Down Expand Up @@ -67,9 +79,11 @@ jobs:
upload_clio_server: true
download_ccache: false
upload_ccache: false
version: nightly-${{ needs.get_date.outputs.date }}

package:
name: Build debian package
needs: get_date

uses: ./.github/workflows/reusable-build.yml
with:
Expand All @@ -83,11 +97,13 @@ jobs:
static: true
upload_clio_server: false
package: true
version: nightly-${{ needs.get_date.outputs.date }}
targets: package
analyze_build_time: false

analyze_build_time:
name: Analyze Build Time
needs: get_date

strategy:
fail-fast: false
Expand All @@ -114,17 +130,7 @@ jobs:
upload_clio_server: false
targets: all
analyze_build_time: true

get_date:
name: Get Date
runs-on: ubuntu-latest
outputs:
date: ${{ steps.get_date.outputs.date }}
steps:
- name: Get current date
id: get_date
run: |
echo "date=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
version: nightly-${{ needs.get_date.outputs.date }}

nightly_release:
needs: [build-and-test, package, get_date]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
run-hooks:
uses: XRPLF/actions/.github/workflows/pre-commit.yml@34790936fae4c6c751f62ec8c06696f9c1a5753a
uses: XRPLF/actions/.github/workflows/pre-commit.yml@5ca417783f0312ab26d6f48b85c78edf1de99bbd
with:
runs_on: heavy
container: '{ "image": "ghcr.io/xrplf/clio-pre-commit:067449c3f8ae6755ea84752ea2962b589fe56c8f" }'
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
upload_clio_server: true
download_ccache: false
upload_ccache: false
expected_version: ${{ github.event_name == 'push' && github.ref_name || '' }}
version: ${{ github.event_name == 'push' && github.ref_name || '' }}

package:
name: Build debian package
Expand All @@ -60,6 +60,7 @@ jobs:
static: true
upload_clio_server: false
package: true
version: ${{ github.event_name == 'push' && github.ref_name || '' }}
targets: package
analyze_build_time: false

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/reusable-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,18 @@ on:
type: string
default: all

expected_version:
description: Expected version of the clio_server binary
required: false
type: string
default: ""

package:
description: Whether to generate Debian package
required: false
type: boolean
default: false

version:
description: Version of the clio_server binary
required: false
type: string
default: ""

jobs:
build:
uses: ./.github/workflows/reusable-build.yml
Expand All @@ -90,8 +90,8 @@ jobs:
upload_clio_server: ${{ inputs.upload_clio_server }}
targets: ${{ inputs.targets }}
analyze_build_time: false
expected_version: ${{ inputs.expected_version }}
package: ${{ inputs.package }}
version: ${{ inputs.version }}

test:
needs: build
Expand Down
43 changes: 22 additions & 21 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@ on:
required: true
type: boolean

expected_version:
description: Expected version of the clio_server binary
required: false
type: string
default: ""

package:
description: Whether to generate Debian package
required: false
type: boolean

version:
description: Version of the clio_server binary
required: false
type: string
default: ""

secrets:
CODECOV_TOKEN:
required: false
Expand All @@ -93,15 +93,11 @@ jobs:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
# We need to fetch tags to have correct version in the release
# The workaround is based on https://github.com/actions/checkout/issues/1467
fetch-tags: true
ref: ${{ github.ref }}

- name: Prepare runner
uses: XRPLF/actions/prepare-runner@2ece4ec6ab7de266859a6f053571425b2bd684b6
uses: XRPLF/actions/prepare-runner@65da1c59e81965eeb257caa3587b9d45066fb925
with:
disable_ccache: ${{ !inputs.download_ccache }}
enable_ccache: ${{ inputs.download_ccache }}

- name: Setup conan on macOS
if: ${{ runner.os == 'macOS' }}
Expand All @@ -117,7 +113,7 @@ jobs:

- name: Restore ccache cache
if: ${{ inputs.download_ccache && github.ref != 'refs/heads/develop' }}
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
uses: actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
with:
path: ${{ env.CCACHE_DIR }}
key: ${{ steps.cache_key.outputs.key }}
Expand All @@ -139,6 +135,7 @@ jobs:
static: ${{ inputs.static }}
time_trace: ${{ inputs.analyze_build_time }}
package: ${{ inputs.package }}
version: ${{ inputs.version }}

- name: Build Clio
uses: ./.github/actions/build-clio
Expand All @@ -162,12 +159,12 @@ jobs:
- name: Show ccache's statistics and zero it
if: ${{ inputs.download_ccache }}
run: |
ccache --show-stats
ccache --show-stats -vv
ccache --zero-stats

- name: Save ccache cache
if: ${{ inputs.upload_ccache && github.ref == 'refs/heads/develop' }}
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
uses: actions/cache/save@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
with:
path: ${{ env.CCACHE_DIR }}
key: ${{ steps.cache_key.outputs.key }}
Expand Down Expand Up @@ -218,15 +215,19 @@ jobs:
if: ${{ inputs.code_coverage }}
uses: ./.github/actions/code-coverage

- name: Verify expected version
if: ${{ inputs.expected_version != '' }}
- name: Verify version is expected
if: ${{ inputs.version != '' }}
env:
INPUT_EXPECTED_VERSION: ${{ inputs.expected_version }}
INPUT_VERSION: ${{ inputs.version }}
run: |
set -e
EXPECTED_VERSION="clio-${INPUT_EXPECTED_VERSION}"
actual_version=$(./build/clio_server --version)
if [[ "$actual_version" != "$EXPECTED_VERSION" ]]; then
EXPECTED_VERSION="clio-${INPUT_VERSION}"
if [[ ${{ inputs.build_type }} == "Debug" ]]; then
EXPECTED_VERSION="${EXPECTED_VERSION}+DEBUG"
fi

actual_version=$(./build/clio_server --version | head -n 1)
if [[ "${actual_version}" != "${EXPECTED_VERSION}" ]]; then
echo "Expected version '${EXPECTED_VERSION}', but got '${actual_version}'"
exit 1
fi
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
fetch-depth: 0

- name: Prepare runner
uses: XRPLF/actions/prepare-runner@2ece4ec6ab7de266859a6f053571425b2bd684b6
uses: XRPLF/actions/prepare-runner@65da1c59e81965eeb257caa3587b9d45066fb925
with:
disable_ccache: true
enable_ccache: false

- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-docker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
files: "docker/compilers/gcc/**"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0

- name: Login to GitHub Container Registry
if: ${{ github.event_name != 'pull_request' }}
Expand Down Expand Up @@ -290,7 +290,7 @@ jobs:
files: "docker/tools/**"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0

- name: Login to GitHub Container Registry
if: ${{ github.event_name != 'pull_request' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/upload-conan-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ jobs:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Prepare runner
uses: XRPLF/actions/prepare-runner@2ece4ec6ab7de266859a6f053571425b2bd684b6
uses: XRPLF/actions/prepare-runner@65da1c59e81965eeb257caa3587b9d45066fb925
with:
disable_ccache: true
enable_ccache: false

- name: Setup conan on macOS
if: ${{ runner.os == 'macOS' }}
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ repos:

# Autoformat: YAML, JSON, Markdown, etc.
- repo: https://github.com/rbubley/mirrors-prettier
rev: 3c603eae8faac85303ae675fd33325cff699a797 # frozen: v3.7.3
rev: 14abee445aea04b39069c19b4bd54efff6775819 # frozen: v3.7.4
hooks:
- id: prettier

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: c8fd5003603dd6f12447314ecd935ba87c09aff5 # frozen: v0.46.0
rev: 76b3d32d3f4b965e1d6425253c59407420ae2c43 # frozen: v0.47.0
hooks:
- id: markdownlint-fix
exclude: LICENSE.md
Expand All @@ -59,7 +59,7 @@ repos:
]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 2892f1f81088477370d4fbc56545c05d33d2493f # frozen: 25.11.0
rev: 831207fd435b47aeffdf6af853097e64322b4d44 # frozen: 25.12.0
hooks:
- id: black

Expand Down Expand Up @@ -94,7 +94,7 @@ repos:
language: script

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 4c26f99731e7c22a047c35224150ee9e43d7c03e # frozen: v21.1.6
rev: 75ca4ad908dc4a99f57921f29b7e6c1521e10b26 # frozen: v21.1.8
hooks:
- id: clang-format
args: [--style=file]
Expand Down
Loading
Loading