-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathaction.yml
67 lines (62 loc) · 2.1 KB
/
action.yml
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
name: 'Setup Godot Action'
description: >-
Setup Godot for headless use with macOS, Windows, and Linux CI/CD runners.
author: 'Chickensoft'
branding:
icon: 'hard-drive'
color: 'white'
inputs:
version:
description: >-
Godot 4 version: e.g., 4.0.0-beta1, 4.0.0-beta.16, 4.0.0, etc. Must include major, minor, and patch (additional pre-release label is optional). Specify `global` or `global.json` to use the version from the project's global.json file.
```yaml
- uses: chickensoft/setup-godot-action@v1
with:
version: global
```
In the root of your project, include a global.json file:
```json
{
"sdk": {
"version": "6.0.406",
"rollForward": "latestMinor"
},
"msbuild-sdks": {
"Godot.NET.Sdk": "4.0.0"
}
}
```
**Important:** If using a global.json file in your project, do *not* specify the version of the Godot.NET.Sdk in your project's `*.csproj` file.
```xml
<Project Sdk="Godot.NET.Sdk"> <!-- GOOD -->
<Project Sdk="Godot.NET.Sdk/4.0.0"> <!-- BAD -->
```
required: true
path:
description: >-
Path to install Godot to, relative to the current working directory of
the action.
default: 'godot'
downloads-path:
description: >-
Path to download Godot to, relative to the current working directory of
the action.
default: 'downloads'
bin-path:
description: >-
Path for binaries to be installed to, relative to the current working
directory of the action. This is the path that will be added to the
system path.
default: 'bin'
godot-sharp-release:
description: >-
Whether to use the release or debug version of GodotSharp.dll. The
appropriate version will be symlinked in bin-path.
default: 'false'
use-dotnet:
description: >-
True to use the .NET-enabled version of Godot that enables C#, false to use the default version.
default: 'true'
runs:
using: 'node16'
main: 'dist/index.js'