GithubHelp home page GithubHelp logo

How to use this tool? about unity-activate HOT 5 CLOSED

game-ci avatar game-ci commented on August 26, 2024
How to use this tool?

from unity-activate.

Comments (5)

webbertakken avatar webbertakken commented on August 26, 2024 1

So in the regular flow you don't need to use this action directly anymore, as activation happens within both test-runner and builder. Activating unity by itself will use up an activation slot, which you'll have to also return. In practice people just all end up using test-runner and builder for all their needs.

We're looking to fully automate the process for personal licenses as well. See https://github.com/game-ci/unity-actions/issues/121

If you want to use this action, the signature is the same as builder. For personal license provide the username, password and file. For professional provide username, password and serial.

Hope this helps.

from unity-activate.

webbertakken avatar webbertakken commented on August 26, 2024

Please follow the documentation at https://game.ci

from unity-activate.

AlexStormwood avatar AlexStormwood commented on August 26, 2024

I've searched all over the website, CTRL+F'd where I can, used the search where I can -- there is nothing about game-ci/unity-activate in the documentation other than "Optionally, use this".

So, with some assumptions & pre-made code snippets, I end up with this workflow:

name: Set Up Unity Personal Licence
on:
  workflow_dispatch: {}
jobs:
  activation:
    name: Request manual activation file
    runs-on: ubuntu-latest
    steps:
      # Request manual activation file
      - name: Request manual activation file
        id: getManualLicenseFile
        uses: game-ci/unity-request-activation-file@v2
      # Upload artifact (Unity_v20XX.X.XXXX.alf)
      - name: Expose as artifact
        uses: actions/upload-artifact@v2
        with:
          name: ${{ steps.getManualLicenseFile.outputs.filePath }}
          path: ${{ steps.getManualLicenseFile.outputs.filePath }}
      # Activate?? This is the code snippet Github Actions Marketplace gives us.
      - name: Unity - Activate
        id: activateLicence
        uses: game-ci/[email protected]
        

This workflow errors out on the "Unity - Activate" step, giving this error:

Activating Unity version "2019.2.11f1".
License activation strategy could not be determined.

Visit https://github.com/webbertakken/unity-builder#usage for more
details on how to set up one of the possible activation strategies.
Error: The process '/usr/bin/docker' failed with exit code 1

Why does this depend on Unity Builder? What is meant to be happening here? There is no documentation explaining any of this.

I can manually take the activation file and turn it into a licence just fine - there's plenty of helpful documentation on that in the link you provided. That's fine. But this action implies that the manual involvement can be replaced by some automation, and I've love to learn more about that.

from unity-activate.

starikcetin avatar starikcetin commented on August 26, 2024

I used the same signature with build as shown in docs:

name: Verify license
on:
  workflow_dispatch: {}
jobs:
  activation:
    name: Verify license
    runs-on: ubuntu-latest
    steps:
      - name: Unity - Activate
        uses: game-ci/[email protected]
        env:
          UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
          UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
          UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}

I am getting this:

License activation strategy could not be determined.

Visit https://game.ci/docs/github/getting-started for more
details on how to set up one of the possible activation strategies.
Error: The process '/usr/bin/docker' failed with exit code 1

What am I doing wrong?

from unity-activate.

webbertakken avatar webbertakken commented on August 26, 2024

I'll answer here once, but if the problem persists for any reason, please, kindly create a new issue.

When the action outputs License activation strategy could not be determined. it means you haven't set UNITY_LICENSE and also not provided a serial. You have to provide one or the other. In your case, your secret is not filled or not passed.

from unity-activate.

Related Issues (6)

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.