Added flow for the sanitizers build

Signed-off-by: Pratik Mankawde <pmankawde@ripple.com>
This commit is contained in:
Pratik Mankawde
2025-11-04 15:59:07 +00:00
parent f3a2ec1fb2
commit c38b5aa2d4
10 changed files with 50 additions and 5 deletions

View File

@@ -24,6 +24,11 @@ on:
description: "The CMake target to build."
type: string
required: true
sanitizers:
description: "The sanitizers to enable ('None', 'Address', 'Thread')."
required: true
type: string
default: "None"
runs_on:
description: Runner to run the job on as a JSON string
@@ -61,6 +66,7 @@ jobs:
runs_on: ${{ inputs.runs_on }}
image: ${{ inputs.image }}
config_name: ${{ inputs.config_name }}
sanitizers: ${{ inputs.sanitizers }}
nproc_subtract: ${{ inputs.nproc_subtract }}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

View File

@@ -23,6 +23,11 @@ on:
required: false
type: string
default: "minimal"
sanitizers:
description: "The sanitizers to enable ('None', 'Address', 'Thread')."
required: true
type: string
default: "None"
secrets:
CODECOV_TOKEN:
description: "The Codecov token to use for uploading coverage reports."
@@ -54,5 +59,6 @@ jobs:
runs_on: ${{ toJSON(matrix.architecture.runner) }}
image: ${{ contains(matrix.architecture.platform, 'linux') && format('ghcr.io/xrplf/ci/{0}-{1}:{2}-{3}-sha-{4}', matrix.os.distro_name, matrix.os.distro_version, matrix.os.compiler_name, matrix.os.compiler_version, matrix.os.image_sha) || '' }}
config_name: ${{ matrix.config_name }}
sanitizers: ${{ inputs.sanitizers }}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

View File

@@ -19,6 +19,11 @@ on:
description: "The CMake target to build."
required: true
type: string
sanitizers:
description: "The sanitizers to enable ('None', 'Address', 'Thread')."
required: true
type: string
default: "None"
runs_on:
description: Runner to run the job on as a JSON string
@@ -85,6 +90,7 @@ jobs:
build_dir: ${{ inputs.build_dir }}
build_nproc: ${{ steps.nproc.outputs.nproc }}
build_type: ${{ inputs.build_type }}
sanitizers: ${{ inputs.sanitizers }}
# Set the verbosity to "quiet" for Windows to avoid an excessive
# amount of logs. For other OSes, the "verbose" logs are more useful.
log_verbosity: ${{ runner.os == 'Windows' && 'quiet' || 'verbose' }}