Compare commits

...

5 Commits

Author SHA1 Message Date
RichardAH
4202d1993d Merge branch 'dev' into niq-xahau-fixes 2025-08-14 17:17:06 +10:00
Nicholas Dudfield
1eb1d09e18 fix: bump cache version to force fresh conan build
Invalidate cached conan packages that have gcc-11 paths baked in
2025-08-14 11:27:22 +07:00
Nicholas Dudfield
f25593546f fix: parameterize compiler version in workflow matrix
- Add compiler_version to matrix configuration
- Remove hardcoded version 13 and unnecessary clang conditional
- Use matrix.compiler_version for Conan profile configuration
2025-08-14 11:25:20 +07:00
Nicholas Dudfield
834f310082 fix: fix restore key 2025-08-14 11:21:50 +07:00
Nicholas Dudfield
1255ea7a01 fix: gcc13 compile issues, fixes #557 2025-08-14 11:14:54 +07:00
5 changed files with 10 additions and 14 deletions

View File

@@ -59,7 +59,6 @@ runs:
${{ runner.os }}-ccache-v${{ inputs.cache_version }}-${{ inputs.compiler-id }}-${{ inputs.configuration }}-${{ inputs.main_branch }}
${{ runner.os }}-ccache-v${{ inputs.cache_version }}-${{ inputs.compiler-id }}-${{ inputs.configuration }}-
${{ runner.os }}-ccache-v${{ inputs.cache_version }}-${{ inputs.compiler-id }}-
${{ runner.os }}-ccache-v${{ inputs.cache_version }}-
- name: Configure project
shell: bash

View File

@@ -54,7 +54,6 @@ runs:
restore-keys: |
${{ runner.os }}-conan-v${{ inputs.cache_version }}-${{ inputs.compiler-id }}-${{ hashFiles('**/conanfile.txt', '**/conanfile.py') }}-
${{ runner.os }}-conan-v${{ inputs.cache_version }}-${{ inputs.compiler-id }}-
${{ runner.os }}-conan-v${{ inputs.cache_version }}-
- name: Export custom recipes
shell: bash

View File

@@ -22,13 +22,14 @@ jobs:
configuration: [Debug]
include:
- compiler: gcc
cc: gcc-11
cxx: g++-11
compiler_id: gcc-11
cc: gcc-13
cxx: g++-13
compiler_id: gcc-13
compiler_version: 13
env:
build_dir: .build
# Bump this number to invalidate all caches globally.
CACHE_VERSION: 1
CACHE_VERSION: 2
MAIN_BRANCH_NAME: dev
steps:
- name: Checkout
@@ -58,12 +59,8 @@ jobs:
conan profile update env.CXX=/usr/bin/${{ matrix.cxx }} default
conan profile update conf.tools.build:compiler_executables='{"c": "/usr/bin/${{ matrix.cc }}", "cpp": "/usr/bin/${{ matrix.cxx }}"}' default
# Set correct compiler version based on matrix.compiler
if [ "${{ matrix.compiler }}" = "gcc" ]; then
conan profile update settings.compiler.version=11 default
elif [ "${{ matrix.compiler }}" = "clang" ]; then
conan profile update settings.compiler.version=14 default
fi
# Set compiler version from matrix
conan profile update settings.compiler.version=${{ matrix.compiler_version }} default
# Display profile for verification
conan profile show default
@@ -120,4 +117,4 @@ jobs:
else
echo "Error: rippled executable not found in ${{ env.build_dir }}"
exit 1
fi
fi

View File

@@ -1,3 +1,4 @@
#include <cstdint>
#include <map>
#include <set>
#include <string>

View File

@@ -321,7 +321,7 @@ public:
HSFEE,
ter(temMALFORMED));
env(ripple::test::jtx::hook(alice, {{}}, 0),
env(ripple::test::jtx::hook(alice, std::vector<Json::Value>{}, 0),
M("Must have a non-empty hooks field"),
HSFEE,
ter(temMALFORMED));