71 lines
1.5 KiB
YAML
71 lines
1.5 KiB
YAML
|
image: barichello/godot-ci:4.1.2
|
||
|
|
||
|
# Cache imported assets between runs
|
||
|
cache:
|
||
|
key: import-assets
|
||
|
paths:
|
||
|
- .godot/imported/
|
||
|
|
||
|
stages:
|
||
|
- import-assets
|
||
|
- export
|
||
|
- deploy
|
||
|
|
||
|
variables:
|
||
|
EXPORT_NAME: Frontier-of-Hell
|
||
|
|
||
|
# 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
|
||
|
- 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
|
||
|
- godot -v --export-release --headless "Windows Desktop" ../build/windows/$EXPORT_NAME.exe
|
||
|
artifacts:
|
||
|
name: $EXPORT_NAME-$CI_JOB_NAME
|
||
|
paths:
|
||
|
- build/windows
|
||
|
|
||
|
mac:
|
||
|
stage: export
|
||
|
script:
|
||
|
- mkdir -v -p build/mac
|
||
|
- godot -v --export-release --headless "Mac OSX" ../build/mac/$EXPORT_NAME.zip
|
||
|
artifacts:
|
||
|
name: $EXPORT_NAME-$CI_JOB_NAME
|
||
|
paths:
|
||
|
- build/mac
|
||
|
|
||
|
web:
|
||
|
stage: export
|
||
|
script:
|
||
|
- mkdir -v -p build/web
|
||
|
- godot -v --export-release --headless "HTML5" ../build/web/index.html
|
||
|
artifacts:
|
||
|
name: $EXPORT_NAME-$CI_JOB_NAME
|
||
|
paths:
|
||
|
- build/web
|
||
|
|
||
|
android:
|
||
|
stage: export
|
||
|
script:
|
||
|
- mkdir -v -p build/android
|
||
|
- godot -v --export-debug --headless "Android Debug" ../build/android/$EXPORT_NAME-debug.apk
|
||
|
artifacts:
|
||
|
name: $EXPORT_NAME-$CI_JOB_NAME
|
||
|
paths:
|
||
|
- build/android
|