mirror of
https://github.com/XRPLF/clio.git
synced 2026-10-10 05:48:12 +00:00
Note: some files are taken exactly as they are in rippled, so changing something here wouldn't be great (because they will drift)
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
name: Run tests with sanitizers
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 4 * * 1-5"
|
|
workflow_dispatch:
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/sanitizers.yml
|
|
|
|
- .github/workflows/reusable-build-test.yml
|
|
- .github/workflows/reusable-build.yml
|
|
- .github/workflows/reusable-test.yml
|
|
|
|
- ".github/actions/**"
|
|
- "!.github/actions/build-docker-image/**"
|
|
|
|
- CMakeLists.txt
|
|
- conanfile.py
|
|
- conan.lock
|
|
- "cmake/**"
|
|
# We don't run sanitizers on code change, because it takes too long
|
|
# - "src/**"
|
|
# - "tests/**"
|
|
|
|
concurrency:
|
|
# Only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-and-test:
|
|
name: Build and Test
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
compiler: [gcc, clang]
|
|
sanitizers: [address, thread, undefinedbehavior]
|
|
build_type: [Release, Debug]
|
|
|
|
uses: ./.github/workflows/reusable-build-test.yml
|
|
with:
|
|
runs_on: heavy
|
|
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-060957e" }'
|
|
download_ccache: false
|
|
upload_ccache: false
|
|
compiler: ${{ matrix.compiler }}
|
|
sanitizers: ${{ matrix.sanitizers }}
|
|
build_type: ${{ matrix.build_type }}
|
|
run_unit_tests: true
|
|
run_integration_tests: false
|
|
upload_clio_server: false
|
|
targets: clio_tests clio_integration_tests
|