mirror of
https://github.com/chickensoft-games/setup-godot.git
synced 2025-08-14 12:55:08 +00:00
68 lines
2.1 KiB
YAML
68 lines
2.1 KiB
YAML
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'
|