diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..6102604 --- /dev/null +++ b/.gitea/workflows/test.yml @@ -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 \ No newline at end of file