70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
image: khaganat/godot-export:4
|
|
|
|
stages:
|
|
- pre-export
|
|
- export
|
|
|
|
variables:
|
|
EXPORT_NAME: 3rd_Person_3dclient_test
|
|
|
|
commit_text:
|
|
stage: pre-export
|
|
tags:
|
|
- Docker
|
|
script:
|
|
- echo "$CI_COMMIT_BRANCH - $CI_COMMIT_SHORT_SHA" > commit.txt
|
|
artifacts:
|
|
paths:
|
|
- commit.txt
|
|
rules:
|
|
- if: '$CI_COMMIT_MESSAGE =~ /<debug>/'
|
|
when: always
|
|
|
|
linux64:
|
|
stage: export
|
|
tags:
|
|
- Docker
|
|
script:
|
|
- apt-get update && apt-get install -y mesa-vulkan-drivers
|
|
- mkdir -v -p $EXPORT_NAME-linux64-$CI_COMMIT_SHORT_SHA
|
|
- godot -v --export-debug --headless "Linux/X11" $EXPORT_NAME-$CI_COMMIT_SHORT_SHA/$EXPORT_NAME-$CI_COMMIT_SHORT_SHA.x86_64
|
|
artifacts:
|
|
name: $EXPORT_NAME-$CI_COMMIT_SHORT_SHA-$CI_JOB_NAME
|
|
paths:
|
|
- $EXPORT_NAME-$CI_COMMIT_SHORT_SHA
|
|
expire_in: 1 week
|
|
rules:
|
|
- if: '$CI_COMMIT_MESSAGE =~ /<debug>/'
|
|
when: always
|
|
|
|
|
|
windows:
|
|
stage: export
|
|
tags:
|
|
- Docker
|
|
script:
|
|
- mkdir -v -p $EXPORT_NAME-windows-$CI_COMMIT_SHORT_SHA
|
|
- godot -v --export-debug --headless "Windows Desktop" $EXPORT_NAME-$CI_COMMIT_SHORT_SHA/$EXPORT_NAME-$CI_COMMIT_SHORT_SHA.exe
|
|
artifacts:
|
|
name: $EXPORT_NAME-$CI_COMMIT_SHORT_SHA-$CI_JOB_NAME
|
|
paths:
|
|
- $EXPORT_NAME-$CI_COMMIT_SHORT_SHA
|
|
expire_in: 1 week
|
|
rules:
|
|
- if: '$CI_COMMIT_MESSAGE =~ /<debug>/'
|
|
when: always
|
|
|
|
linux64-test:
|
|
stage: export
|
|
tags:
|
|
- Docker
|
|
script:
|
|
- apt-get update && apt-get install -y mesa-vulkan-drivers
|
|
- mkdir -v -p $EXPORT_NAME-linux64-$CI_COMMIT_SHORT_SHA
|
|
- godot -v --export-debug --headless "Linux/X11" $EXPORT_NAME-linux64-$CI_COMMIT_SHORT_SHA/$EXPORT_NAME-$CI_COMMIT_SHORT_SHA.x86_64
|
|
artifacts:
|
|
name: $EXPORT_NAME-linux64-$CI_COMMIT_SHORT_SHA-$CI_JOB_NAME
|
|
paths:
|
|
- $EXPORT_NAME-linux64-$CI_COMMIT_SHORT_SHA
|
|
expire_in: 4 week
|
|
when: manual
|