mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-30 07:55:51 +00:00
* Speed up the generation of coverage reports by using multiple cores. * Add codecov step to coverage workflow.
33 lines
858 B
YAML
33 lines
858 B
YAML
name: build
|
|
inputs:
|
|
generator:
|
|
default: null
|
|
configuration:
|
|
required: true
|
|
cmake-args:
|
|
default: null
|
|
cmake-target:
|
|
default: all
|
|
# An implicit input is the environment variable `build_dir`.
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: configure
|
|
shell: bash
|
|
run: |
|
|
cd ${build_dir}
|
|
cmake \
|
|
${{ inputs.generator && format('-G "{0}"', inputs.generator) || '' }} \
|
|
-DCMAKE_TOOLCHAIN_FILE:FILEPATH=build/generators/conan_toolchain.cmake \
|
|
-DCMAKE_BUILD_TYPE=${{ inputs.configuration }} \
|
|
${{ inputs.cmake-args }} \
|
|
..
|
|
- name: build
|
|
shell: bash
|
|
run: |
|
|
cmake \
|
|
--build ${build_dir} \
|
|
--config ${{ inputs.configuration }} \
|
|
--parallel ${NUM_PROCESSORS:-$(nproc)} \
|
|
--target ${{ inputs.cmake-target }}
|