mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-22 12:05:53 +00:00
8
.github/actions/build-deps/action.yml
vendored
8
.github/actions/build-deps/action.yml
vendored
@@ -21,10 +21,6 @@ inputs:
|
|||||||
description: "The logging verbosity."
|
description: "The logging verbosity."
|
||||||
required: false
|
required: false
|
||||||
default: "verbose"
|
default: "verbose"
|
||||||
sanitizers:
|
|
||||||
description: "The sanitizers to enable ('Address+UndefinedBehaviour' or 'Thread+UndefinedBehaviour')."
|
|
||||||
required: false
|
|
||||||
default: ""
|
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
@@ -39,10 +35,6 @@ runs:
|
|||||||
LOG_VERBOSITY: ${{ inputs.log_verbosity }}
|
LOG_VERBOSITY: ${{ inputs.log_verbosity }}
|
||||||
run: |
|
run: |
|
||||||
echo 'Installing dependencies.'
|
echo 'Installing dependencies.'
|
||||||
echo 'github.workspace === ${{ github.workspace }}'
|
|
||||||
echo "GITHUB_WORKSPACE === $GITHUB_WORKSPACE"
|
|
||||||
echo 'runner.workspace === ${{ runner.workspace }}'
|
|
||||||
echo "RUNNER_WORKSPACE === $RUNNER_WORKSPACE"
|
|
||||||
mkdir -p "${BUILD_DIR}"
|
mkdir -p "${BUILD_DIR}"
|
||||||
cd "${BUILD_DIR}"
|
cd "${BUILD_DIR}"
|
||||||
conan install \
|
conan install \
|
||||||
|
|||||||
13
.github/scripts/strategy-matrix/generate.py
vendored
13
.github/scripts/strategy-matrix/generate.py
vendored
@@ -179,8 +179,8 @@ def generate_strategy_matrix(all: bool, config: Config) -> list:
|
|||||||
# Disable mold linker - it's too strict about relocations with GCC runtime libs
|
# Disable mold linker - it's too strict about relocations with GCC runtime libs
|
||||||
# Use default linker (bfd/ld) which is more lenient with mixed code models
|
# Use default linker (bfd/ld) which is more lenient with mixed code models
|
||||||
cmake_args += ' -Duse_mold=OFF -Duse_gold=OFF -Duse_lld=OFF'
|
cmake_args += ' -Duse_mold=OFF -Duse_gold=OFF -Duse_lld=OFF'
|
||||||
#exe_linker_flags += ' -fuse-ld=lld'# -static-libubsan -static-libasan -static-libtsan'
|
exe_linker_flags += ' -static-libubsan -static-libasan -static-libtsan'
|
||||||
#shared_linker_flags += ' -fuse-ld=lld'# -static-libubsan -static-libasan -static-libtsan'
|
shared_linker_flags += ' -static-libubsan -static-libasan -static-libtsan'
|
||||||
|
|
||||||
if architecture['platform'] == 'linux/amd64' and os['compiler_name'] == 'gcc':
|
if architecture['platform'] == 'linux/amd64' and os['compiler_name'] == 'gcc':
|
||||||
# Add -mcmodel=large and -fPIC to both compiler AND linker flags
|
# Add -mcmodel=large and -fPIC to both compiler AND linker flags
|
||||||
@@ -210,8 +210,7 @@ def generate_strategy_matrix(all: bool, config: Config) -> list:
|
|||||||
'build_only': build_only,
|
'build_only': build_only,
|
||||||
'build_type': build_type,
|
'build_type': build_type,
|
||||||
'os': os,
|
'os': os,
|
||||||
'architecture': architecture,
|
'architecture': architecture
|
||||||
'sanitizers': "Address"
|
|
||||||
})
|
})
|
||||||
# Update configs for tsan
|
# Update configs for tsan
|
||||||
# gcc doesn't supports atomic_thread_fence with tsan. Suppress warnings.
|
# gcc doesn't supports atomic_thread_fence with tsan. Suppress warnings.
|
||||||
@@ -236,8 +235,7 @@ def generate_strategy_matrix(all: bool, config: Config) -> list:
|
|||||||
'build_only': build_only,
|
'build_only': build_only,
|
||||||
'build_type': build_type,
|
'build_type': build_type,
|
||||||
'os': os,
|
'os': os,
|
||||||
'architecture': architecture,
|
'architecture': architecture
|
||||||
'sanitizers': "Thread"
|
|
||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
if cxx_flags:
|
if cxx_flags:
|
||||||
@@ -251,8 +249,7 @@ def generate_strategy_matrix(all: bool, config: Config) -> list:
|
|||||||
'build_only': build_only,
|
'build_only': build_only,
|
||||||
'build_type': build_type,
|
'build_type': build_type,
|
||||||
'os': os,
|
'os': os,
|
||||||
'architecture': architecture,
|
'architecture': architecture
|
||||||
'sanitizers': ""
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return configurations
|
return configurations
|
||||||
|
|||||||
1
.github/workflows/on-trigger.yml
vendored
1
.github/workflows/on-trigger.yml
vendored
@@ -75,7 +75,6 @@ jobs:
|
|||||||
os: [linux, macos, windows]
|
os: [linux, macos, windows]
|
||||||
with:
|
with:
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
sanitizers: ${{ matrix.sanitizers }}
|
|
||||||
strategy_matrix: ${{ github.event_name == 'schedule' && 'all' || 'minimal' }}
|
strategy_matrix: ${{ github.event_name == 'schedule' && 'all' || 'minimal' }}
|
||||||
secrets:
|
secrets:
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|||||||
@@ -29,12 +29,6 @@ on:
|
|||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
sanitizers:
|
|
||||||
description: "The sanitizers to enable ('Address+UndefinedBehaviour' or 'Thread+UndefinedBehaviour')."
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
default: ""
|
|
||||||
|
|
||||||
runs_on:
|
runs_on:
|
||||||
description: Runner to run the job on as a JSON string
|
description: Runner to run the job on as a JSON string
|
||||||
required: true
|
required: true
|
||||||
@@ -105,7 +99,6 @@ jobs:
|
|||||||
build_dir: ${{ inputs.build_dir }}
|
build_dir: ${{ inputs.build_dir }}
|
||||||
build_nproc: ${{ steps.nproc.outputs.nproc }}
|
build_nproc: ${{ steps.nproc.outputs.nproc }}
|
||||||
build_type: ${{ inputs.build_type }}
|
build_type: ${{ inputs.build_type }}
|
||||||
sanitizers: ${{ inputs.sanitizers }}
|
|
||||||
# Set the verbosity to "quiet" for Windows to avoid an excessive
|
# Set the verbosity to "quiet" for Windows to avoid an excessive
|
||||||
# amount of logs. For other OSes, the "verbose" logs are more useful.
|
# amount of logs. For other OSes, the "verbose" logs are more useful.
|
||||||
log_verbosity: ${{ runner.os == 'Windows' && 'quiet' || 'verbose' }}
|
log_verbosity: ${{ runner.os == 'Windows' && 'quiet' || 'verbose' }}
|
||||||
@@ -146,7 +139,7 @@ jobs:
|
|||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Check linking (Linux)
|
- name: Check linking (Linux)
|
||||||
if: ${{ runner.os == 'Linux' && inputs.sanitizers == '' }}
|
if: ${{ runner.os == 'Linux' }}
|
||||||
working-directory: ${{ inputs.build_dir }}
|
working-directory: ${{ inputs.build_dir }}
|
||||||
run: |
|
run: |
|
||||||
ldd ./rippled
|
ldd ./rippled
|
||||||
|
|||||||
2
BUILD.md
2
BUILD.md
@@ -361,7 +361,7 @@ tools.build:cxxflags=['-DBOOST_ASIO_DISABLE_CONCEPTS']
|
|||||||
```
|
```
|
||||||
|
|
||||||
If you would like to activate `asan+ubsan`(`Address`) or `tsan+ubsan`(`Thread`) for the build,
|
If you would like to activate `asan+ubsan`(`Address`) or `tsan+ubsan`(`Thread`) for the build,
|
||||||
declare an env. variable as follows and simply use the `incsanitizers`
|
declare an env. variable as follows and simply use the `sanitizers`
|
||||||
profile in the `conan install` command.
|
profile in the `conan install` command.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user