game-ci / unity-activate Goto Github PK
View Code? Open in Web Editor NEWActivate personal or professional license for Unity
Home Page: https://github.com/marketplace/actions/unity-activate
License: MIT License
Activate personal or professional license for Unity
Home Page: https://github.com/marketplace/actions/unity-activate
License: MIT License
Love game.ci, love the unity-* suite of GitHub Actions, question re professional license activation:
When reproducing the license activation commands in my own environment (both unityci image and native editor), post-activation, Unity attempts to open the current working directory or the last opened project. How does this action avoid this behavior?
Log from action (technically the /step/activate.sh from test-runner, but functionally equiv):
...
LICENSE SYSTEM [2021121 20:7:56] License activated successfully with user: ***
LICENSE SYSTEM [2021121 20:7:56] Next license update check is after 2021-01-23T01:07:55
No valid Unity Editor license found. Please activate your license.
Activation complete.
Log from native editor:
LICENSE SYSTEM [2021127 14:23:10] License activated successfully with user: ***
LICENSE SYSTEM [2021127 14:23:10] Next license update check is after 2021-01-28T14:23:10
[Package Manager] Server::Start -- Port 57536 was selected
COMMAND LINE ARGUMENTS:
/opt/unity/Editor/Unity
-batchmode
-nographics
-logFile
/dev/stdout
-quit
-serial
(hidden)
-username
(hidden)
-password
(hidden)
[REDACTED: CURRENT WORK DIRECTORY]
[REDACTED: PROCEEDS TO IMPORT PROJECT, THEN QUIT...]
Observed with Unity 2019.4.4f1 and unityci/editor:ubuntu-2019.4.4f1-base-0.8.0
Just a short question! :)
I'm using the game-ci github actions to build both formal releases and test PRs. Up to now, I've been using a free license stored in the yml, but I now have a professional license which I'd like to use to build my formal releases. However, since it's stored in a secret, it's not accessible by a PR from a fork.
Ideally, I'd like to be able to pass both the license file (in the yml) and the email/password/serial (from the secret), and if the email/password/serial is defined (i.e., the source is the main repo), it'd use those, but if not (e.g., a fork), it'd fall back to the free license. However, based on the order of the if / else if, it doesn't look like this will work.
Any ideas for how this can be done, or maybe a better workflow to use?
I was asked to create another issue, so here it is, continuing from #77 (comment)
I have filled them all:
This is for personal license if that helps with any context.
I have just tested that the action works for my pro license, but there is the issue that you only have a limited number of activations.
We need an action to release the license after the build has completed, or if it fails.
Run game-ci/[email protected]
with:
unityVersion: 2020.3.6f1
/usr/bin/docker build /home/runner/work/_actions/game-ci/unity-activate/v1.3/action --file /home/runner/work/_actions/game-ci/unity-activate/v1.3/action/Dockerfile --build-arg IMAGE=gableroux/unity3d:2020.3.6f1 --tag unity-action:2020.3.6f1
Sending build context to Docker daemon 135.2kB
Step 1/12 : ARG IMAGE
Step 2/12 : FROM $IMAGE
manifest for gableroux/unity3d:2020.3.6f1 not found: manifest unknown: manifest unknown
Error: The process '/usr/bin/docker' failed with exit code 1
Seems that the change to unityci/editor have not been done yet.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.