mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
setting variables in run
Signed-off-by: Pratik Mankawde <pmankawde@ripple.com>
This commit is contained in:
10
.github/actions/build-deps/action.yml
vendored
10
.github/actions/build-deps/action.yml
vendored
@@ -37,17 +37,7 @@ runs:
|
|||||||
BUILD_OPTION: ${{ inputs.force_build == 'true' && '*' || 'missing' }}
|
BUILD_OPTION: ${{ inputs.force_build == 'true' && '*' || 'missing' }}
|
||||||
BUILD_TYPE: ${{ inputs.build_type }}
|
BUILD_TYPE: ${{ inputs.build_type }}
|
||||||
LOG_VERBOSITY: ${{ inputs.log_verbosity }}
|
LOG_VERBOSITY: ${{ inputs.log_verbosity }}
|
||||||
ASAN_OPTIONS: 'suppressions="$GITHUB_WORKSPACE"/external/asan_suppressions.txt'
|
|
||||||
TRY_A: "suppressions=$GITHUB_WORKSPACE/external/asan_suppressions.txt"
|
|
||||||
TRY_B: "suppressions=$GITHUB_WORKSPACE/external/asan_suppressions.txt"
|
|
||||||
TRY_C: "suppressions=${GITHUB_WORKSPACE}/external/asan_suppressions.txt"
|
|
||||||
TSAN_OPTIONS: suppressions='$GITHUB_WORKSPACE'/external/tsan_suppressions.txt
|
|
||||||
run: |
|
run: |
|
||||||
echo "$ASAN_OPTIONS $TSAN_OPTIONS $TRY_A $TRY_B $TRY_C"
|
|
||||||
set TRY_D="suppressions=$GITHUB_WORKSPACE/external/asan_suppressions.txt"
|
|
||||||
echo "TRY_D = $TRY_D"
|
|
||||||
export TRY_E="suppressions=$GITHUB_WORKSPACE/external/asan_suppressions.txt"
|
|
||||||
echo "TRY_E = $TRY_E"
|
|
||||||
echo 'Installing dependencies.'
|
echo 'Installing dependencies.'
|
||||||
echo 'github.workspace === ${{ github.workspace }}'
|
echo 'github.workspace === ${{ github.workspace }}'
|
||||||
echo "GITHUB_WORKSPACE === $GITHUB_WORKSPACE"
|
echo "GITHUB_WORKSPACE === $GITHUB_WORKSPACE"
|
||||||
|
|||||||
12
.github/workflows/reusable-build-test-config.yml
vendored
12
.github/workflows/reusable-build-test-config.yml
vendored
@@ -114,10 +114,7 @@ jobs:
|
|||||||
working-directory: ${{ inputs.build_dir }}
|
working-directory: ${{ inputs.build_dir }}
|
||||||
env:
|
env:
|
||||||
BUILD_TYPE: ${{ inputs.build_type }}
|
BUILD_TYPE: ${{ inputs.build_type }}
|
||||||
ASAN_OPTIONS: suppressions="$GITHUB_WORKSPACE"/external/asan_suppressions.txt
|
|
||||||
TSAN_OPTIONS: suppressions="$GITHUB_WORKSPACE"/external/tsan_suppressions.txt
|
|
||||||
run: |
|
run: |
|
||||||
echo "$ASAN_OPTIONS $TSAN_OPTIONS"
|
|
||||||
cmake .. \
|
cmake .. \
|
||||||
-G '${{ runner.os == 'Windows' && 'Visual Studio 17 2022' || 'Ninja' }}' \
|
-G '${{ runner.os == 'Windows' && 'Visual Studio 17 2022' || 'Ninja' }}' \
|
||||||
-DCMAKE_TOOLCHAIN_FILE:FILEPATH=build/generators/conan_toolchain.cmake \
|
-DCMAKE_TOOLCHAIN_FILE:FILEPATH=build/generators/conan_toolchain.cmake \
|
||||||
@@ -173,10 +170,10 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
BUILD_TYPE: ${{ inputs.build_type }}
|
BUILD_TYPE: ${{ inputs.build_type }}
|
||||||
PARALLELISM: ${{ runner.os == 'Windows' && '1' || steps.nproc.outputs.nproc }}
|
PARALLELISM: ${{ runner.os == 'Windows' && '1' || steps.nproc.outputs.nproc }}
|
||||||
ASAN_OPTIONS: suppressions=$GITHUB_WORKSPACE/external/asan_suppressions.txt
|
|
||||||
TSAN_OPTIONS: suppressions=$GITHUB_WORKSPACE/external/tsan_suppressions.txt
|
|
||||||
run: |
|
run: |
|
||||||
echo "$ASAN_OPTIONS $TSAN_OPTIONS"
|
export ASAN_OPTIONS="suppressions=$GITHUB_WORKSPACE/external/asan_suppressions.txt"
|
||||||
|
export TSAN_OPTIONS="suppressions=$GITHUB_WORKSPACE/external/tsan_suppressions.txt"
|
||||||
|
echo "ASAN_OPTIONS=$ASAN_OPTIONS TSAN_OPTIONS=$TSAN_OPTIONS"
|
||||||
ctest \
|
ctest \
|
||||||
--output-on-failure \
|
--output-on-failure \
|
||||||
-C "${BUILD_TYPE}" \
|
-C "${BUILD_TYPE}" \
|
||||||
@@ -188,6 +185,9 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
BUILD_NPROC: ${{ steps.nproc.outputs.nproc }}
|
BUILD_NPROC: ${{ steps.nproc.outputs.nproc }}
|
||||||
run: |
|
run: |
|
||||||
|
export ASAN_OPTIONS="suppressions=$GITHUB_WORKSPACE/external/asan_suppressions.txt"
|
||||||
|
export TSAN_OPTIONS="suppressions=$GITHUB_WORKSPACE/external/tsan_suppressions.txt"
|
||||||
|
echo "ASAN_OPTIONS=$ASAN_OPTIONS TSAN_OPTIONS=$TSAN_OPTIONS"
|
||||||
./rippled --unittest --unittest-jobs "${BUILD_NPROC}"
|
./rippled --unittest --unittest-jobs "${BUILD_NPROC}"
|
||||||
|
|
||||||
- name: Debug failure (Linux)
|
- name: Debug failure (Linux)
|
||||||
|
|||||||
Reference in New Issue
Block a user