A GitHub Action to install Godot 4 on a GitHub Actions runner.
Note: Only supported on Ubuntu runners with Godot 4+.
This action will download export templates and provide access to the godot binary on your runner's path. You can then reference that binary in other workflow steps.
- name: Setup Godotuses: solarlabyrinth/action-setup-godot@v3with:
version: 4.7-stable
- name: Build Gamerun: | mkdir -p ./build godot --headless --export-debug "Windows" ./build/game.exe- name: Setup Godotuses: solarlabyrinth/action-setup-godot@v3with:
# Required. The name of a release from here: https://github.com/godotengine/godot-builds/releasesversion: 4.7-stable# Optional. Defaults to falsecsharp: false# Optional. Defaults to "godot"name: godot# Optional. Whether export templates should be installed. Defaults to trueexport-templates: trueAny version of 4.X should work, even ones not listed here. These are the versions my test suite runs against by exporting a small Godot project to the following target platforms.
| Version | Windows | Linux | Mac | Windows - C# | Linux - C# | Mac - C# |
|---|---|---|---|---|---|---|
| 4.7-stable | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| 4.6.1-stable | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| 4.5.1-stable | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| 4.4.1-stable | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| 4.3-stable | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| 4.2.2-stable | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| 4.1.4-stable | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| 4.0.4-stable | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |