mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
feat: Build macos dependencies with sanitizers (#2240)
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -47,7 +47,7 @@ jobs:
|
||||
|
||||
include:
|
||||
- os: macos15
|
||||
conan_profile: default_apple_clang
|
||||
conan_profile: apple-clang
|
||||
build_type: Release
|
||||
container: ""
|
||||
static: false
|
||||
|
||||
3
.github/workflows/build_impl.yml
vendored
3
.github/workflows/build_impl.yml
vendored
@@ -81,8 +81,7 @@ jobs:
|
||||
if: runner.os == 'macOS'
|
||||
uses: ./.github/actions/setup_conan_macos
|
||||
with:
|
||||
conan_profile: ${{ inputs.conan_profile }}
|
||||
global_conf_file: docker/ci/conan/global.conf
|
||||
conan_files_dir: docker/ci/conan/
|
||||
|
||||
- name: Restore cache
|
||||
if: ${{ !inputs.disable_cache }}
|
||||
|
||||
4
.github/workflows/nightly.yml
vendored
4
.github/workflows/nightly.yml
vendored
@@ -32,7 +32,7 @@ jobs:
|
||||
matrix:
|
||||
include:
|
||||
- os: macos15
|
||||
conan_profile: default_apple_clang
|
||||
conan_profile: apple-clang
|
||||
build_type: Release
|
||||
static: false
|
||||
- os: heavy
|
||||
@@ -75,7 +75,7 @@ jobs:
|
||||
container: '{ "image": "ghcr.io/xrplf/clio-ci:latest" }'
|
||||
static: true
|
||||
- os: macos15
|
||||
conan_profile: default_apple_clang
|
||||
conan_profile: apple-clang
|
||||
container: ""
|
||||
static: false
|
||||
uses: ./.github/workflows/build_impl.yml
|
||||
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -22,7 +22,7 @@ jobs:
|
||||
matrix:
|
||||
include:
|
||||
- os: macos15
|
||||
conan_profile: default_apple_clang
|
||||
conan_profile: apple-clang
|
||||
build_type: Release
|
||||
static: false
|
||||
- os: heavy
|
||||
|
||||
44
.github/workflows/upload_conan_deps.yml
vendored
44
.github/workflows/upload_conan_deps.yml
vendored
@@ -22,35 +22,26 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
generate-matrix:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
||||
steps:
|
||||
- name: Checkout Repo ⚡️
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Calculate recipes matrix 🛠
|
||||
id: set-matrix
|
||||
run: .github/scripts/generate_conan_matrix.py >> "${GITHUB_OUTPUT}"
|
||||
|
||||
upload-conan-deps:
|
||||
name: Build and Upload Conan Deps
|
||||
|
||||
needs: generate-matrix
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [heavy, heavy-arm64]
|
||||
container: ['{ "image": "ghcr.io/xrplf/clio-ci:latest" }']
|
||||
compiler: ["gcc", "clang"]
|
||||
sanitizer_ext: [".asan", ".tsan", ".ubsan", ""]
|
||||
build_type: ["Release", "Debug"]
|
||||
# libbacktrace doesn't build on arm64 with gcc.tsan
|
||||
exclude:
|
||||
- os: heavy-arm64
|
||||
container: '{ "image": "ghcr.io/xrplf/clio-ci:latest" }'
|
||||
compiler: gcc
|
||||
sanitizer_ext: .tsan
|
||||
build_type: Release
|
||||
- os: heavy-arm64
|
||||
container: '{ "image": "ghcr.io/xrplf/clio-ci:latest" }'
|
||||
compiler: gcc
|
||||
sanitizer_ext: .tsan
|
||||
build_type: Debug
|
||||
include:
|
||||
- os: macos15
|
||||
container: ""
|
||||
compiler: default_apple_clang
|
||||
sanitizer_ext: ""
|
||||
build_type: Release
|
||||
matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
container: ${{ matrix.container != '' && fromJson(matrix.container) || null }}
|
||||
@@ -70,8 +61,7 @@ jobs:
|
||||
if: runner.os == 'macOS'
|
||||
uses: ./.github/actions/setup_conan_macos
|
||||
with:
|
||||
conan_profile: ${{ env.CONAN_PROFILE }}
|
||||
global_conf_file: docker/ci/conan/global.conf
|
||||
conan_files_dir: docker/ci/conan/
|
||||
|
||||
- name: Show conan profile
|
||||
run: conan profile show --profile:all ${{ env.CONAN_PROFILE }}
|
||||
@@ -89,4 +79,4 @@ jobs:
|
||||
|
||||
- name: Upload Conan packages
|
||||
if: github.event_name != 'pull_request'
|
||||
run: conan upload "*" -r=ripple --confirm --force
|
||||
run: conan upload "*" -r=ripple --confirm
|
||||
|
||||
Reference in New Issue
Block a user