Giter VIP home page Giter VIP logo

game-ci / unity-request-activation-file Goto Github PK

View Code? Open in Web Editor NEW
54.0 6.0 33.0 1.4 MB

Unity - Request manual activation file (part of unity-actions)

Home Page: https://github.com/marketplace/actions/unity-request-activation-file

License: MIT License

Shell 24.91% JavaScript 41.35% TypeScript 33.74%
unity github actions activate test build deploy unity-actions unity-ci hacktoberfest

unity-request-activation-file's People

Contributors

andrewkahr avatar blazekill avatar codes-exe avatar davidmfinol avatar dependabot-preview[bot] avatar dependabot[bot] avatar gableroux avatar mob-sakai avatar mrgadget1024 avatar snyk-bot avatar veyronsakai avatar webbertakken avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

unity-request-activation-file's Issues

Manual License activation (only using legacy licensing module) does not work in 2022.1

Unity 2022.1 changelog says:

License: Deprecated the Legacy Licensing module.

In my testing that looks like activation by manual license file no longer works.

This is 2022.1:

Unity Editor version:    2022.1.0f1 (369b620af41c) 
Branch:                  2022.1/release 
Build type:              Release 
Batch mode:              YES 
System name:             Linux 
Distro version:          #1 SMP Debian 5.10.46-4 (2021-08-03) 
Kernel version:          5.10.0-8-amd64 
Architecture:            x86_64 
Available memory:        64189 MB 
[LicensingClient] Channel doesn't exist: "LicenseClient-root" 
[Licensing::Module] Successfully launched the LicensingClient (PId: 66) [LicensingClient] Channel doesn't exist: "LicenseClient-root" 
[Licensing::Module] Timed-out after 10.00s, waiting for channel: "LicenseClient-root" 
IPC channel to LicensingClient doesn't exist; aborting 

Checking for leaked weakptr: Found no leaked weakptrs. 

Memory Statistics: 
[ALLOC_TEMP_TLS] TLS Allocator StackAllocators : 
[ALLOC_TEMP_CoreBusinessMetricsCache] Initial Block Size 64.0 KB Current Block Size 64.0 KB Peak Allocated Bytes 0 B Overflow Count 0 
[ALLOC_TEMP_Profiler.Dispatcher] Initial Block Size 64.0 KB Current Block Size 64.0 KB Peak Allocated Bytes 0 B Overflow Count 0 
[ALLOC_TEMP_AssetGarbageCollectorHelper] x 11 Initial Block Size 64.0 KB Current Block Size 64.0 KB Peak Allocated Bytes 0 B Overflow Count 0 
[ALLOC_MEMORYPROFILER] Requested Block Size 1.0 MB Peak Block count 1 Peak Allocated memory 4.3 KB Peak Large allocation bytes 0 B 
##utp:{"type":"MemoryLeaks","version":2,"phase":"Immediate","time":1652427993909,"processId":52,"allocatedMemory":92892,"memoryLabels":[{"Default":530},{"Thread":128},{"Manager":6738},{"Serialization":40},{"BaseObject":12056},{"String":4704},{"DynamicArray":432},{"HashMap":3668},{"Utility":1024},{"PoolAlloc":10336},{"GI":3248},{"VR":80},{"EditorUtility":256},{"RestService":1022},{"UnityConnect":28584},{"Collab":25},{"ProfilerEditor":20021}]}

This is 2021

Unity Editor version:    2021.2.16f1 (559fc0ec6670)
Branch:                  2021.2/staging
Build type:              Release
Batch mode:              YES
System name:             Linux
Distro version:          #1 SMP Debian 5.10.46-4 (2021-08-03)
Kernel version:          5.10.0-8-amd64
Architecture:            x86_64
Available memory:        64189 MB
[LicensingClient] Channel doesn't exist: "LicenseClient-root"
[Licensing::Module] Successfully launched the LicensingClient (PId: 65)
[LicensingClient] Channel doesn't exist: "LicenseClient-root"
[Licensing::Module] Timed-out after 5.00s, waiting for channel: "LicenseClient-root"
IPC channel to LicensingClient doesn't exist; falling back to Legacy licensing

 Load manual activation license file.

LICENSE SYSTEM [2022513 7:39:21] Load license file from: UnityLicenseFile.ulf

LICENSE SYSTEM [2022513 7:39:21] Next license update check is after 2022-05-13T20:10:34

Notice the fallback:

IPC channel to LicensingClient doesn't exist; falling back to Legacy licensing

 Load manual activation license file.

That does not happen anymore.

Unable to use gableroux/unity3d:2019.3.13f1-update-2020-05-07 (docker container does not exists)

Hi,

I'm using the latest stable 2019.3.x version of Unity but the docker container is only provided with the following version : 2019.3.13f1-update-2020-05-07 and of course after setting the variable unityVersion in my yml file I'm getting error for generating the licence file.

You can see the logs at: loic-lopez/UMVC/runs/657049541

And the .yml file at: loic-lopez/UMVC/actions/runs/99337511/workflow

Wrong temp path is used

Bug description

In https://github.com/game-ci/unity-request-activation-file/blob/main/src/model/docker.ts there are several volumes mounted from the /home/runner/ folder. The temp folder is not always at this location, e.g. if you have multiple runners on the same machine. Instead path from RUNNER_TEMP environmental variable should be used ( https://github.com/game-ci/unity-builder/ already uses this environmental variable).

How to reproduce

Run the action on a runner where the /home/runner/ path is not accessible, and RUNNER_TEMP points somewhere else

  • Expected behavior

Actions works as expected and produce activation file.

Additional details

Error:

docker: Error response from daemon: error while creating mount source path '/home/runner/work/_temp/_github_home': mkdir /home/runner: permission denied.
Error: The process '/usr/bin/docker' failed with exit code 126

Incorrect unity version

Bug description

It is generating a License for a different version that the one currently in use

How to reproduce

  1. Have a repository with a unity project
  2. In the folder ProjectSettings/ProjectVersion.txt have the following content:
m_EditorVersion: 2020.3.13f1
m_EditorVersionWithRevision: 2020.3.13f1 (71691879b7f5)
  1. When running the request activation file, the following file is returned: Unity_v2019.2.11f1.alf

Expected behavior

It should return a file for the 2020 version of unity.

Additional details
The builder part of your project is also having trouble finding the ProjectVersion.txt, as well as the .git

Maybe my folder structure is not ok? Here it is.

image

Windows support

Context

Running the action on a windows machine seems not supported.
Not sure how to proceed if we want to build windows version using Personal License.

Is it possible to use non base editor image?

I'm trying to use unityci/editor:2020.1.17f1-ios-0.7.0 but getting an error below:

Run webbertakken/[email protected]
/usr/bin/docker build /home/lvg/actions-runner/_work/_actions/webbertakken/unity-request-manual-activation-file/v2.0-alpha-1/action --file /home/lvg/actions-runner/_work/_actions/webbertakken/unity-request-manual-activation-file/v2.0-alpha-1/action/Dockerfile --build-arg IMAGE=unityci/editor:2020.1.17f1-ios-0.7.0-base-0 --tag unity-action:2020.1.17f1-ios-0.7.0-base-0
Sending build context to Docker daemon  133.1kB

Step 1/12 : ARG IMAGE
Step 2/12 : FROM $IMAGE
manifest for unityci/editor:2020.1.17f1-ios-0.7.0-base-0 not found: manifest unknown: manifest unknown
Error: The process '/usr/bin/docker' failed with exit code 1

My workflow:

name: Continuous Integration

on:
  pull_request: { }
  push: { branches: [ master ] }

env:
  UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
  UNITY_VERSION: 2020.1.17f1-ios-0.7.0

jobs:
  activation:
    name: Request manual activation file ๐Ÿ”‘
    #    runs-on: ubuntu-20.04
    runs-on: self-hosted
    if: false #enable this job to request a manual unity license
    steps:
      - name: cleanup #https://github.com/actions/checkout/issues/211
        run: |
          sudo chown -R $USER:$USER $GITHUB_WORKSPACE
      - name: Checkout repository
        uses: actions/checkout@v2
      - name: Request manual activation file
        uses: webbertakken/[email protected]
        id: getManualLicenseFile
        with:
          unityVersion: ${{ env.UNITY_VERSION }}
      #          This will produce a Unity_xxx.alf file
      #          download it in your computer and upload it to
      #          https://license.unity3d.com/manual
      #          That will produce a Unity_xxx.ulf file
      #          add the contents of Unity_xxx.ulf file to your repository's secrets
      #          as UNITY_LICENSE
      #          then disable this job

Looks -base-0 is added on runtime. Are there ability to use editor+modules based docker images eg unityci/editor:2020.1.17f1-ios-0.7.0?
In case it's not supported at that moment I do not mind to add such support myself by PR

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.