mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-04 11:55:51 +00:00
30 lines
747 B
YAML
30 lines
747 B
YAML
name: Build clio
|
|
description: Build clio in build directory
|
|
|
|
inputs:
|
|
targets:
|
|
description: Space-separated build target names
|
|
default: all
|
|
subtract_threads:
|
|
description: An option for the action get_number_of_threads. See get_number_of_threads
|
|
required: true
|
|
default: "0"
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Get number of threads
|
|
uses: ./.github/actions/get_number_of_threads
|
|
id: number_of_threads
|
|
with:
|
|
subtract_threads: ${{ inputs.subtract_threads }}
|
|
|
|
- name: Build targets
|
|
shell: bash
|
|
run: |
|
|
cd build
|
|
cmake \
|
|
--build . \
|
|
--parallel "${{ steps.number_of_threads.outputs.threads_number }}" \
|
|
--target ${{ inputs.targets }}
|