diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 171cf34..939322b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,46 @@ -image: unityci/editor:2020.3.16f1 +image: unityci/editor:VERSION before_script: + - apt-get update + - apt-get install -y --no-install-recommends \ + xvfb \ + xorg-dev \ + libglu1-mesa-dev + - curl -sL https://deb.nodesource.com/setup_14.x | bash - + - apt-get update + - apt-get install -y --no-install-recommends \ + nodejs \ + python2.7 \ + cmake \ + default-jre-headless + - git clone https://github.com/emscripten-core/emsdk.git + - cd emsdk + - ./emsdk install latest + - ./emsdk activate latest + - source ./emsdk_env.sh - export UNITY_LICENSE_CONTENT="$UNITY_LICENSE" - . <(curl -s https://raw.githubusercontent.com/game-ci/docker/master/entrypoint.sh) - -build: + +build_windows: + stage: build script: - - unity-ci build --target Standalone --output build + - unity-ci build --target StandaloneWindows64 --output build/windows artifacts: paths: - - build/ + - build/windows/ + +build_linux: + stage: build + script: + - unity-ci build --target StandaloneLinux64 --output build/linux + artifacts: + paths: + - build/linux/ + +build_webgl: + stage: build + script: + - unity-ci build --target WebGL --output build/webgl + artifacts: + paths: + - build/webgl/ \ No newline at end of file