| 1 |
|
| 2 |
name: "Setup and run meson" |
| 3 |
description: "Setup and run meson" |
| 4 |
inputs: |
| 5 |
builddir: |
| 6 |
description: "The build directory" |
| 7 |
default: "builddir" |
| 8 |
srcdir: |
| 9 |
description: "The source directory" |
| 10 |
default: "." |
| 11 |
meson_args: |
| 12 |
description: "Arguments passed to meson setup" |
| 13 |
default: "" |
| 14 |
meson_skip_test: |
| 15 |
description: "Set to a nonempty string to skip meson test" |
| 16 |
default: "" |
| 17 |
meson_test_args: |
| 18 |
description: "Arguments passed to meson test" |
| 19 |
default: "" |
| 20 |
meson_precmd: |
| 21 |
description: "Set to 'sudo' to run with sudo" |
| 22 |
default: "" |
| 23 |
ninja_args: |
| 24 |
description: "Arguments passed to ninja" |
| 25 |
default: "" |
| 26 |
ninja_precmd: |
| 27 |
description: "Set to 'sudo' to run with sudo" |
| 28 |
default: "" |
| 29 |
runs: |
| 30 |
using: "composite" |
| 31 |
steps: |
| 32 |
- run: | |
| 33 |
${{inputs.meson_precmd}} meson setup ${{inputs.builddir}} ${{inputs.srcdir}} ${{inputs.meson_args}} |
| 34 |
${{inputs.meson_precmd}} meson configure ${{inputs.builddir}} |
| 35 |
${{inputs.ninja_precmd}} ninja --verbose -C ${{inputs.builddir}} ${{inputs.ninja_args}} |
| 36 |
if [[ -z "${{inputs.meson_skip_test}}" ]]; then |
| 37 |
${{inputs.meson_precmd}} meson test -C ${{inputs.builddir}} --print-errorlogs ${{inputs.meson_test_args}}; |
| 38 |
fi |
| 39 |
shell: bash |