This commit is contained in:
parent
235aa27dfc
commit
44ff5f654a
1 changed files with 42 additions and 0 deletions
42
.gitea/workflows/test.yml
Normal file
42
.gitea/workflows/test.yml
Normal file
|
@ -0,0 +1,42 @@
|
|||
image: barichello/godot-ci:4.0.2
|
||||
|
||||
cache:
|
||||
key: import-assets
|
||||
paths:
|
||||
- .godot/imported/
|
||||
|
||||
stages:
|
||||
- import-assets
|
||||
- export
|
||||
- deploy
|
||||
|
||||
variables:
|
||||
EXPORT_NAME: test-project
|
||||
|
||||
# Open the editor to import assets in case the cache was empty or outdated
|
||||
import-assets:
|
||||
stage: import-assets
|
||||
script:
|
||||
- godot -v -e --quit --headless
|
||||
|
||||
linux:
|
||||
stage: export
|
||||
script:
|
||||
- mkdir -v -p build/linux
|
||||
- cd $EXPORT_NAME
|
||||
- godot -v --export-release --headless "Linux/X11" ../build/linux/$EXPORT_NAME.x86_64
|
||||
artifacts:
|
||||
name: $EXPORT_NAME-$CI_JOB_NAME
|
||||
paths:
|
||||
- build/linux
|
||||
|
||||
windows:
|
||||
stage: export
|
||||
script:
|
||||
- mkdir -v -p build/windows
|
||||
- cd $EXPORT_NAME
|
||||
- godot -v --export-release --headless "Windows Desktop" ../build/windows/$EXPORT_NAME.exe
|
||||
artifacts:
|
||||
name: $EXPORT_NAME-$CI_JOB_NAME
|
||||
paths:
|
||||
- build/windows
|
Reference in a new issue