Commit cc4350bf authored by Matteo De Carlo's avatar Matteo De Carlo

ci building tools

We are now making build tools from the ci.
We discarded the debug builds because they were too big for the gitlab artifact system.

Builing windows tools with mingw fails, so tools are built only for linux.

Made python script unbuffered so we can see the output of the program live in the CI.
parent 60b02d2c
......@@ -11,12 +11,13 @@ stages:
stage: build
image: ubuntu:bionic
variables:
PLATFORM: x11
PLATFORM: ''
EXTRA: ''
TOOLS: 'false'
script:
# - scons -j64 platform=$PLATFORM bits=64 target=release_debug $EXTRA
- scons -j64 platform=$PLATFORM tools=no bits=64 target=release_debug $EXTRA
- scons -j64 platform=$PLATFORM tools=no bits=64 target=release $EXTRA
# - scons -j32 platform=$PLATFORM tools=no bits=64 target=release_debug $EXTRA
- scons -j32 platform=$PLATFORM tools=no bits=64 target=release $EXTRA
- if $TOOLS; then scons -j32 platform=$PLATFORM tools=yes bits=64 target=release_debug $EXTRA; fi
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
......@@ -28,6 +29,9 @@ build_ubuntu:
- apt-get update -qq && apt-get install -y -qq build-essential scons pkg-config libx11-dev libxcursor-dev libxinerama-dev
libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev libfreetype6-dev libssl-dev libudev-dev
libxi-dev libxrandr-dev yasm
variables:
PLATFORM: x11
TOOLS: 'true'
build_windows:
extends: .build
......@@ -78,7 +82,8 @@ deploy_treasurechest:
image: python:3-alpine
variables:
TREASURECHEST_PWD: $TREASURECHEST_PWD
PYTHONUNBUFFERED: 1
script:
- pip install -r gitlab-ci/requirements.txt
- ls -la bin/
- python gitlab-ci/upload_treasurechest.py bin/* #bin/godot.windows.opt.64.exe bin/godot.x11.opt.64 bin/godot.osx.opt.64
- python gitlab-ci/upload_treasurechest.py bin/*
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment