Commit Graph

21 Commits (1a72aa18eb7b67b90f185253b7860f39afdd966b)

Author SHA1 Message Date
Andrew Kahr 396a2cfde8 Move platform validation and setup out of docker and into its own layer, remove branching on docker run command 2022-01-24 14:56:22 -08:00
Andrew Kahr 6f7ae3b1c5 Remove debug directory listings and try setSecret to mask serial 2022-01-24 10:21:28 -08:00
Andrew Kahr a65235e960 fix reg export command 2022-01-24 04:09:09 -08:00
Andrew Kahr 03403efd8e Prevent Unity serial from leaking to console 2022-01-24 02:00:03 -08:00
Andrew Kahr 2baaed1013 Remove debug and fix environment variables for activation/deactivation scripts 2022-01-24 01:43:50 -08:00
Andrew Kahr 47e600b419 Explicitly pass in unity email to docker run 2022-01-24 01:27:05 -08:00
Andrew Kahr 9b1ea18e4a Further improve missing email and password error. Remove temppaths being mounted to docker image 2022-01-23 21:04:47 -08:00
Andrew Kahr d6cc7fd22f Improve error message for unset UNITY_EMAIL and UNITY_PASSWORD 2022-01-23 20:14:14 -08:00
Andrew Kahr 0277bd3e76 Remove redundant comment 2022-01-21 16:18:58 -08:00
Andrew Kahr b2edd5fa91 Fix comment style and rename validateWindowsPrereqs to validateWindowsPlatformRequirements 2022-01-21 16:16:43 -08:00
AndrewKahr 5c29e25c04
Update src/model/docker.ts
Co-authored-by: Webber Takken <webber.nl@gmail.com>
2022-01-21 13:22:41 -08:00
AndrewKahr ee8b3266cd
Update src/model/docker.ts
Co-authored-by: Webber Takken <webber.nl@gmail.com>
2022-01-21 13:22:22 -08:00
AndrewKahr df48d46e18
Update src/model/docker.ts
Co-authored-by: Webber Takken <webber.nl@gmail.com>
2022-01-21 13:21:51 -08:00
Andrew Kahr 52bb48dd5c 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
2021-12-26 14:05:08 -08:00
Andrew Kahr 373d987823 Implemented logic for windows based docker builds. Moved dockerfiles and scripts to platform specific folders. 2021-12-18 21:16:35 -08:00
David Finol 239273ca72
Add androidTargetSdkVersion as an option to update the Android SDK (#298)
* Add androidTargetSdkVersion as an option to update the Android SDK API level

* Fix build script

* Update default value

* Add JAVA_HOME

* Use Unity_path

* Update src/model/android-versioning.test.ts

Co-authored-by: Webber Takken <webber@takken.io>

* Correct JAVA_HOME

* Use unity_path

* Update JAVA_HOME to use path found from 2020.3

* Dynamically determine JAVA_HOME

* Update path determination

Co-authored-by: Webber Takken <webber@takken.io>
2021-11-24 06:51:52 -06:00
David Finol 13fdcad790
Add gitPrivateToken (#296)
* adding option to pass git credential

* trigger change

* trigger change

* build dist/index

* prettier

* adding set git credentials with more config

* correct docker.ts input

* change default of git credential

* try using git command line to set token

* remove git config cat

* adding api: to git config

* change to token

* change input name to reflect the type github private token

Co-authored-by: Alexander Brandstedt <alexander@infralium.com>
Co-authored-by: Alexander Brandstedt <mad01@users.noreply.github.com>
2021-11-14 16:52:35 -06:00
ivan-hernandez-scopely 497f2f7b5f
Using SSH_AUTH_SOCK (ssh agent forwarding) to pull upm private repos (#256)
* using SSH_AUTH_SOCK (ssh agent forwarding) to pull upm private repos

* sshAgent as input parameter

* yarn run prettier --write "src/**/*.{js,ts}"

* yarn run lint --fix && yarn build

* fixed compilation after rebase

* removed RUN apt-get update && apt-get install -y openssh-client. This change needs to be done upstream. See game-ci/docker#117
2021-05-28 23:51:10 +02:00
Gaeel Bradshaw-Rodriguez e31af20466
Chown files to a custom user after building (fix file ownership) (#250)
* Chown files to a custom user after building

* Better describe `chownFilesTo` input

As suggested by @webbertakken: https://github.com/game-ci/unity-builder/pull/250#discussion_r624575666

Co-authored-by: Webber Takken <webber@takken.io>

* Simplify chown step in `build.sh`

Co-authored-by: Webber Takken <webber@takken.io>

Co-authored-by: Webber Takken <webber@takken.io>
2021-05-02 01:23:15 +02:00
Markus 4d0b6e6db1
Pass on USYM_UPLOAD_AUTH_TOKEN if defined (#234)
To automatically upload symbols to unity, we need to define the `USYM_UPLOAD_AUTH_TOKEN` variable. Currently the build container ignores this variable, even if it's defined in the github action.

```
2021-03-26T02:35:35.5938747Z time="2021-03-26T02:35:35Z" level=fatal msg="Please provide an auth token with USYM_UPLOAD_AUTH_TOKEN environment variable"
```
2021-03-28 17:06:22 -05:00
Webber Takken 4fde4e47b6
Refactor action to typescript (#226)
* Refactor to typescript (config part)

* Refactor to typescript (convert extensions, minor fixes)

* Refactor to typescript (move from `action` to `dist`)

* Re-enable integrity-check for dist index.js

* Fix all tests and lints

* fix parsing major versions

* Test patch level to be digits only

* debug

* debug

* uncache

* manual compile

* debug

* debug

* Debug

* Build lib - doh

* remove diff check

* Make kubernetes workflow manual

* Properly generate 3 digit for simple major tags

* Remove ts-ignore

* re-enable cache
2021-03-14 00:44:01 +01:00