Repository navigation
Expand file tree
/
Copy pathaction.yml
More file actions
95 lines (90 loc) · 3.55 KB
/
Copy pathaction.yml
File metadata and controls
95 lines (90 loc) · 3.55 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: 'Driverforge CLI'
description: 'Install the Driverforge CLI onto the runner (on PATH) and optionally run a target (build, …).'
author: 'Driverforge'
branding:
icon: 'terminal'
color: 'orange'
inputs:
version:
description: 'Driverforge CLI version to install — pinned (e.g. 1.4.0) or "latest".'
required: false
default: 'latest'
command:
description: 'Driverforge target to run after install (e.g. build). Omit for install-only — driverforge stays on PATH for later steps.'
required: false
default: ''
project-dir:
description: 'Path to the driver project (driverforge --project-dir / -p).'
required: false
default: ''
configuration:
description: 'Build configuration — swaps config.<name>.lua (driverforge build --configuration / -c).'
required: false
default: ''
increment:
description: 'Version bump: major | minor | patch (driverforge build --increment / -i). "true" uses the CLI default.'
required: false
default: ''
driver-version:
description: 'Stamp an absolute driver <version> for this build (driverforge build --version). Mutually exclusive with increment.'
required: false
default: ''
encrypt:
description: 'Force script encryption on (true) or off (false) — driverforge build --encrypt. Omit to keep the driver''s authored setting.'
required: false
default: ''
no-suffix:
description: 'Build a named configuration under the naked driver name — no artifact or display-name suffix (driverforge build --no-suffix). "false" forces suffixing back on; omit to suffix as usual.'
required: false
default: ''
sourcemap:
description: 'Emit a sourcemap (driverforge build --sourcemap / -s).'
required: false
default: ''
unpack:
description: 'Keep unpacked output in dist/ (driverforge build --unpack / -u).'
required: false
default: ''
warnings-as-errors:
description: 'Fail the build (before packaging) if it emits any warning (driverforge build --warnings-as-errors). Recommended for CI, where a warned build must not produce an artifact.'
required: false
default: ''
args:
description: 'Extra raw args appended to the driverforge invocation — escape hatch as the CLI grows.'
required: false
default: ''
github-token:
description: 'Reserved. Release binaries download from public Azure storage and need no token.'
required: false
default: ''
outputs:
version:
description: 'The resolved Driverforge CLI version that was installed.'
value: ${{ steps.install.outputs.version }}
driverforge-path:
description: 'Absolute path to the installed driverforge binary.'
value: ${{ steps.install.outputs.driverforge-path }}
runs:
using: 'composite'
steps:
- id: install
shell: bash
env:
INPUT_VERSION: ${{ inputs.version }}
run: bash "${{ github.action_path }}/scripts/install.sh"
- id: run
if: ${{ inputs.command != '' }}
shell: bash
env:
INPUT_COMMAND: ${{ inputs.command }}
INPUT_PROJECT_DIR: ${{ inputs.project-dir }}
INPUT_CONFIGURATION: ${{ inputs.configuration }}
INPUT_INCREMENT: ${{ inputs.increment }}
INPUT_DRIVER_VERSION: ${{ inputs.driver-version }}
INPUT_ENCRYPT: ${{ inputs.encrypt }}
INPUT_NO_SUFFIX: ${{ inputs.no-suffix }}
INPUT_SOURCEMAP: ${{ inputs.sourcemap }}
INPUT_UNPACK: ${{ inputs.unpack }}
INPUT_WARNINGS_AS_ERRORS: ${{ inputs.warnings-as-errors }}
INPUT_ARGS: ${{ inputs.args }}
run: bash "${{ github.action_path }}/scripts/run.sh"