Git Product home page Git Product logo

unitycipipeline's Introduction

Build Status

UnityCiPipeline

Example of usage Unity projects in continuous integration scenarios.

Features

  • Support all available unity versions (but Linux release is required)
  • Build project & upload it to itch.io
  • Latest short commit hash is used as last part of the version (like 1.2.3.9ee2d1d)

How to use

Initial setup

  • Install docker locally
  • docker run -e UNITY_USERNAME={unity_account_username} -e UNITY_PASSWORD={unity_account_password} -e REPO_URL={your_repo_url} konh/unity_build_image:latest /bin/bash -c "./activate.sh"
  • Save activation file content into .alf file
  • Go to https://license.unity3d.com/manual, upload saved file, download license file
  • ./build.sh -target=Encode-License-File -fileName={path_to_ulf}
  • Save encoded content into UNITY_ULF env variable later

Travis usage

  • Create your own repo and enable it at https://travis-ci.org/
  • Set up butler (https://itch.io/docs/butler/)
  • Adds several required environment variables into Travis repository settings:
    • REPO_URL - your repository URL
    • BUTLER_API_KEY - see 'Running butler from CI builds' section at https://itch.io/docs/butler/login.html
    • ITCH_TARGET - path to your game like konh/test-ci:html
    • UNITY_USERNAME, UNITY_PASSWORD - your Unity account credentials
    • UNITY_ULF - base64 of your .ulf file (according to Initial setup section)
  • Additional environment variables:
    • INSTALL_ARGS - arguments to Unity install ('Unity,WebGL' by default)
    • BUILD_TARGET - platform to build ('WebGL' by default)
  • Push your repo changes
  • See how your game is published to itch.io

unitycipipeline's People

Contributors

konh avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.