-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
42 lines (41 loc) · 1.66 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: 'Document CMake options'
description: 'GitHub Actions for automatically documenting all cmake options which specify the build.'
author: 'Matthias Peschke'
branding:
icon: 'award'
color: 'green'
inputs:
source_dir:
description: 'Set the directory of the sources. Normally your github repository.'
required: true
option_filter:
description: 'Specify a filter for cmake options to process. For getting options like MYLIB_SOME_OPT, set filter to MYLIB. If empty, no filter is applied.'
required: false
default: ''
heading_marker:
description: 'Markdown specifier for the heading of the section which contains the documentation of cmake build options.'
required: false
default: '#'
heading_title:
description: 'Title of the section which contains the documentation of cmake build options.'
required: false
default: 'Build Options'
readme_name:
description: 'Filename of the README file relative to source_dir.'
required: false
default: 'README.md'
configure_opts:
description: 'Options which are passed to the cmake configure call. Format: <OPT1>=<VAL1> <OPT2>=<VAL2> ...'
required: false
default: ''
runs:
using: 'composite'
steps:
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: execute py script
run: |
python ${{ github.action_path }}/make_doc.py --filter=${{ inputs.option_filter }} --source-dir=${{ inputs.source_dir }} --heading-marker='${{ inputs.heading_marker }}' --heading-title='${{ inputs.heading_title }}' --README-name='${{ inputs.readme_name }}' --configure-opts='${{ inputs.configure_opts }}'
shell: bash