Tweaking CI presets for basic manual use

This commit is contained in:
yannk 2022-04-02 16:36:53 +02:00
parent 8ac933869c
commit 552f147f7c

View file

@ -1,40 +1,36 @@
image: khaganat/godot-export:4
stages:
- test
- export
variables:
EXPORT_NAME: khanat_client
EXPORT_NAME: TPbasicgame_3dclient
linux64_test:
stage: test
linux64:
stage: export
tags:
- Docker
script:
- mkdir -v -p $EXPORT_NAME$CI_COMMIT_SHORT_SHA
- godot -v --export --headless "Linux/X11" $EXPORT_NAME$CI_COMMIT_SHORT_SHA/$EXPORT_NAME$CI_COMMIT_SHORT_SHA.x86_64
- apt-get update && apt-get install -y mesa-vulkan-drivers
- mkdir -v -p $EXPORT_NAME-$CI_COMMIT_SHORT_SHA
- godot -v --export --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
name: $EXPORT_NAME-$CI_COMMIT_SHORT_SHA-$CI_JOB_NAME
paths:
- $EXPORT_NAME$CI_COMMIT_SHORT_SHA
- $EXPORT_NAME-$CI_COMMIT_SHORT_SHA
expire_in: 1 week
#except:
#- stable
#- develop
when: manual
windows:
stage: test
stage: export
tags:
- Docker
script:
- mkdir -v -p $EXPORT_NAME$CI_COMMIT_SHORT_SHA
- godot -v --export --headless "Windows Desktop" $EXPORT_NAME$CI_COMMIT_SHORT_SHA/$EXPORT_NAME$CI_COMMIT_SHORT_SHA.exe
- godot -v --export --headless "Windows Desktop" $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
name: $EXPORT_NAME-$CI_COMMIT_SHORT_SHA-$CI_JOB_NAME
paths:
- $EXPORT_NAME$CI_COMMIT_SHORT_SHA
#only:
# - stable
- $EXPORT_NAME-$CI_COMMIT_SHORT_SHA
expire_in: 1 week
when: manual