mirror of
https://github.com/yeslayla/build-godot-action.git
synced 2025-07-17 21:03:49 +02:00
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
b6670be025 | |||
e8b4e439a5 | |||
f41cbbd786 | |||
337ddc6155 | |||
a8c36a5f54 | |||
4c54598c55 | |||
0ca1161ddb |
11
ReadMe.md
11
ReadMe.md
@ -1,4 +1,4 @@
|
||||
# Build Godot
|
||||
# Build Godot Project
|
||||
|
||||
This action builds the godot project in your `$GITHUB_WORKSPACE`, so that you can easily automate builds.
|
||||
|
||||
@ -10,9 +10,10 @@ Example:
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
- uses: josephbmanley/build-godot-action@develop
|
||||
- uses: josephbmanley/build-godot-action@master
|
||||
env:
|
||||
PROJECT: godot-project
|
||||
SUBDIRECTORY: project
|
||||
```
|
||||
|
||||
### Environment Variables
|
||||
@ -23,6 +24,12 @@ steps:
|
||||
|
||||
Eg. `godot-project` will export to `godot-project.exe`
|
||||
|
||||
- #### SUBDIRECTORY
|
||||
|
||||
Subdirectory to export project into.
|
||||
|
||||
Eg. `project` will export to `$GITHUB_WORKSPACE/build/windows/project/godot-project.exe`
|
||||
|
||||
## Credits
|
||||
|
||||
This action uses the [godot-ci](https://github.com/aBARICHELLO/godot-ci) docker image from [BARICHELLO](https://github.com/aBARICHELLO)
|
||||
|
@ -1,6 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
|
||||
|
||||
wget https://downloads.tuxfamily.org/godotengine/3.1.1/Godot_v3.1.1-stable_export_templates.tpz --quiet
|
||||
mkdir ~/.cache
|
||||
mkdir -p ~/.config/godot
|
||||
@ -11,12 +13,12 @@ rm -f Godot_v3.1.1-stable_export_templates.tpz
|
||||
|
||||
# Export for Linux
|
||||
mkdir -p ./build/linux
|
||||
godot --export Linux/X11 ./build/linux/${PROJECT}
|
||||
godot --export Linux/X11 ./build/linux/${SUBDIRECTORY:-""}${PROJECT}
|
||||
|
||||
# Export for Windows
|
||||
mkdir -p ./build/windows
|
||||
godot --export "Windows Desktop" ./build/windows/${PROJECT}.exe
|
||||
godot --export "Windows Desktop" ./build/windows/${SUBDIRECTORY:-""}${PROJECT}.exe
|
||||
|
||||
# Export for OSX
|
||||
mkdir -p ./builds/mac
|
||||
godot --export "Mac OSX" ./build/mac/${PROJECT}
|
||||
godot --export "Mac OSX" ./build/mac/${SUBDIRECTORY:-""}${PROJECT}
|
Reference in New Issue
Block a user