Build Unity projects for different platforms
Go to file
AndrewKahr 3d0eb0805b
Initial Support for Windows Based Builds (#305)
* Implemented logic for windows based docker builds. Moved dockerfiles and scripts to platform specific folders.

* Add missing newline character

* Add build-tests for windows and a unity project configured to output il2cpp

* Add additional build targets (uwp and tvOS)
Adjustments to build scripts to not require win10 sdk when not needed (tvOS)
Platform-based prereq setup
Setup image tags for the new platforms with errors if building on the wrong base os
Rename test-project-il2cpp to test-project-windows to be used for all windows based project building (IL2CPP backend selected instead of mono)
Fix tests to be platform based

* Update dist/platforms/windows/steps/return_license.ps1

Co-authored-by: Webber Takken <webber.nl@gmail.com>

* Update src/model/docker.ts

Co-authored-by: Webber Takken <webber.nl@gmail.com>

* Update src/model/docker.ts

Co-authored-by: Webber Takken <webber.nl@gmail.com>

* Update src/model/docker.ts

Co-authored-by: Webber Takken <webber.nl@gmail.com>

* Fix outdated repository and homepage links in dockerfiles

* Fix comment style and rename validateWindowsPrereqs to validateWindowsPlatformRequirements

* Remove redundant comment

* Remove windows unity test project, add ProjectSettings for the il2cpp backend, and add logic to replace the projectsettings file with the il2cpp one on windows test builds.

* Fix action.test.ts to accept windows as a base platform

* Fix camelcase for wsaPlayer

* Switch from add to copy in windows dockerfile

* Change slash direction

* Switch ADD to COPY to conform with best practices, change ls to dir on windows dockerfile

* Improve error message for unset UNITY_EMAIL and UNITY_PASSWORD

* Further improve missing email and password error. Remove temppaths being mounted to docker image

* Add debug statement. TODO: Remove these

* Add more debug

* Explicitly pass in unity email to docker run

* Remove debug and fix environment variables for activation/deactivation scripts

* Prevent Unity serial from leaking to console

* Debug folder listings

* More debug print dirs

* fix debug print path

* fix reg export command

* Remove debug directory listings and try setSecret to mask serial

* Update src/model/action.ts

Co-authored-by: Webber Takken <webber.nl@gmail.com>

* Update src/model/docker.ts

Co-authored-by: Webber Takken <webber.nl@gmail.com>

* Update src/model/image-tag.ts

Co-authored-by: David Finol <davidmfinol@gmail.com>

* Update .github/workflows/build-tests.yml

Co-authored-by: David Finol <davidmfinol@gmail.com>

* Move platform validation and setup out of docker and into its own layer, remove branching on docker run command

* Fix test failure due to missing license

* Fix camelCase and duplicate variables

* Fix lint issues and make paths more understandable

* Fix typo in build-tests.yml

* Fix move command in build-tests.yml

* Different method to force move file

* Fix missing quote and backslash

* Pass unity email and password to builder action for windows build tests

* Push serial to windows test builds

* Make windows build tests only run on push to main

Co-authored-by: Webber Takken <webber.nl@gmail.com>
Co-authored-by: David Finol <davidmfinol@gmail.com>
2022-01-25 22:18:15 +01:00
.github Initial Support for Windows Based Builds (#305) 2022-01-25 22:18:15 +01:00
.husky Support version tags that don't start with v for semantic versioning (#303) 2022-01-02 15:31:48 -06:00
dist Initial Support for Windows Based Builds (#305) 2022-01-25 22:18:15 +01:00
media remove anything recognizable as Unity (#184) 2020-12-06 17:57:57 +01:00
src Initial Support for Windows Based Builds (#305) 2022-01-25 22:18:15 +01:00
test-project Initial Support for Windows Based Builds (#305) 2022-01-25 22:18:15 +01:00
.dockerignore Refactor action to typescript (#226) 2021-03-14 00:44:01 +01:00
.editorconfig Refactor action to typescript (#226) 2021-03-14 00:44:01 +01:00
.eslintignore Refactor action to typescript (#226) 2021-03-14 00:44:01 +01:00
.eslintrc.json Refactor action to typescript (#226) 2021-03-14 00:44:01 +01:00
.gitattributes Refactor action to typescript (#226) 2021-03-14 00:44:01 +01:00
.gitignore Initial Support for Windows Based Builds (#305) 2022-01-25 22:18:15 +01:00
.prettierignore Refactor action to typescript (#226) 2021-03-14 00:44:01 +01:00
.prettierrc.json Refactor action to typescript (#226) 2021-03-14 00:44:01 +01:00
.yarnrc Refactor action to typescript (#226) 2021-03-14 00:44:01 +01:00
action.yml Add androidTargetSdkVersion as an option to update the Android SDK (#298) 2021-11-24 06:51:52 -06:00
CODE_OF_CONDUCT.md Add code of conduct 2020-01-19 01:54:56 +01:00
codecov.yml Stop hammering patches 🔨 2020-05-01 17:55:27 +02:00
CONTRIBUTING.md Update CONTRIBUTING.md 2021-01-04 16:08:15 -06:00
jest.config.js Refactor action to typescript (#226) 2021-03-14 00:44:01 +01:00
LICENSE Add license (MIT) 2019-11-30 19:02:47 +01:00
package.json Bump nanoid from 3.1.30 to 3.1.31 (#322) 2022-01-22 01:44:40 +01:00
README.md Indicate how to support us (#277) 2021-07-12 19:28:11 +02:00
tsconfig.json Refactor action to typescript (#226) 2021-03-14 00:44:01 +01:00
yarn.lock Bump nanoid from 3.1.30 to 3.1.31 (#322) 2022-01-22 01:44:40 +01:00

Unity - Builder

(Not affiliated with Unity Technologies)

GitHub Action to build Unity projects for different platforms.

Part of the GameCI open source project.

Actions status lgtm - code quality codecov - test coverage

How to use

Find the docs on the GameCI documentation website.

Visit the GameCI Unity Actions status repository for related Actions.

Community

Feel free to join us on Discord and engage with the community.

Contributing

To help improve the documentation, please find the docs repository.

To contribute to Unity Builder, kindly read the contribution guide.

Support us

GameCI is free for everyone forever.

You can support us at OpenCollective.

Licence

This repository is MIT licensed.

This includes all contributions from the community.