mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-03 10:05:51 +00:00
test: Add build_and_test reusable workflow (#2048)
This commit is contained in:
10
.github/actions/build_clio/action.yml
vendored
10
.github/actions/build_clio/action.yml
vendored
@@ -1,13 +1,15 @@
|
||||
name: Build clio
|
||||
description: Build clio in build directory
|
||||
|
||||
inputs:
|
||||
target:
|
||||
description: Build target name
|
||||
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:
|
||||
@@ -17,8 +19,8 @@ runs:
|
||||
with:
|
||||
subtract_threads: ${{ inputs.subtract_threads }}
|
||||
|
||||
- name: Build Clio
|
||||
- name: Build targets
|
||||
shell: bash
|
||||
run: |
|
||||
cd build
|
||||
cmake --build . --parallel ${{ steps.number_of_threads.outputs.threads_number }} --target ${{ inputs.target }}
|
||||
cmake --build . --parallel ${{ steps.number_of_threads.outputs.threads_number }} --target ${{ inputs.targets }}
|
||||
|
||||
Reference in New Issue
Block a user