Skip to content

Instantly share code, notes, and snippets.

@ifnull
Last active September 25, 2020 23:08
Show Gist options
  • Save ifnull/344f259f2651c615b92b916572b7fc49 to your computer and use it in GitHub Desktop.
Save ifnull/344f259f2651c615b92b916572b7fc49 to your computer and use it in GitHub Desktop.
Continuous Integration for Unity with CircleCI - Sample File
version: 2.1
orbs:
aws-s3: circleci/aws-s3@1.0.11
references:
docker_image: &docker_image
docker:
- image: gableroux/unity3d:2019.1.12f1 # unity3d.x.ulf-enc is fixed to this version
setup_unity_license_env_var: &setup_unity_license_env_var
command: |
openssl version
openssl aes-256-cbc -md sha512 -pbkdf2 -d -in .circleci/unity3d.x.ulf-enc -k ${UNITY_CIPHER} >> .circleci/unity3d.x.ulf
jobs:
build_StandaloneWindows64:
<<: *docker_image
steps:
- run: echo 'export PATH=/root/.local/bin:$PATH' >> ~/.bash_profile # aws install by pip won't be found without this
- run:
command: apt-get update && apt-get install -y git python3-pip awscli && git --version
- checkout
- run:
<<: *setup_unity_license_env_var
- run:
environment:
BUILD_TARGET: StandaloneWindows64
BUILD_NAME: projectname-
command: "./bin/build.sh"
- store_artifacts:
path: "./Builds/"
- aws-s3/sync: # using standard envs i.e. AWS_ACCESS_KEY_ID
from: Builds
to: 's3://projectname-unity-builds'
workflows:
version: 2
test_and_build:
jobs:
- build_StandaloneWindows64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment