.gitlab-ci.yml 1007 Bytes
Newer Older
Razvan Radulescu's avatar
Razvan Radulescu committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
variables:
  BUILD_NAME: game
  GODOT_VERSION: 3.0.6
  GODOT_VARIANT: stable

purism:
  stage: build
  before_script:
    - apt-get update -q
    - apt-get install -yq wget unzip
    - mkdir -v -p ./downloads ./build
    - mkdir -v -p ~/.local/share/godot/templates ~/.cache ~/.config/godot
    - cd ./downloads
    - wget "http://download.tuxfamily.org/godotengine/${GODOT_VERSION}/Godot_v${GODOT_VERSION}-${GODOT_VARIANT}_linux_headless.64.zip"
    - wget "http://downloads.tuxfamily.org/godotengine/${GODOT_VERSION}/Godot_v${GODOT_VERSION}-${GODOT_VARIANT}_export_templates.tpz"
    - unzip Godot_v*_linux_headless.64.zip
    - unzip Godot_v*_export_templates.tpz
    - mv -v Godot_v*_linux_headless.64 /bin/godot
    - mv -v templates ~/.local/share/godot/templates/${GODOT_VERSION}.${GODOT_VARIANT}
    - cd ..
    - rm -rf ./downloads
  script:
    - godot -v -q --path ./project --export "Linux/X11" ../build/$BUILD_NAME.x64
  artifacts:
    name: $BUILD_NAME-$CI_JOB_NAME
    paths:
      - ./build