From 76491deb5f3c2395f185b2650cad369f18446f85 Mon Sep 17 00:00:00 2001 From: bd_ Date: Wed, 14 Sep 2022 20:33:10 -0700 Subject: [PATCH] Trying to activate manually --- .github/workflows/ci-activate.yml | 12 ++++++------ ci/unity-req-license/Dockerfile | 3 +++ ci/unity-req-license/Unity_v2019.4.31f1.alf | 1 + ci/unity-req-license/req-license.bat | 2 ++ ci/unity-req-license/req-license.ps1 | 2 ++ 5 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 ci/unity-req-license/Dockerfile create mode 100644 ci/unity-req-license/Unity_v2019.4.31f1.alf create mode 100644 ci/unity-req-license/req-license.bat create mode 100644 ci/unity-req-license/req-license.ps1 diff --git a/.github/workflows/ci-activate.yml b/.github/workflows/ci-activate.yml index af3fa8b9..d4908b48 100644 --- a/.github/workflows/ci-activate.yml +++ b/.github/workflows/ci-activate.yml @@ -10,12 +10,12 @@ jobs: runs-on: windows-2019 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) + - uses: actions/checkout@v3 + - runs: | + cd ci\unity-req-license + powershell .\req-license.ps1 - name: Expose as artifact uses: actions/upload-artifact@v2 with: - name: ${{ steps.getManualLicenseFile.outputs.filePath }} - path: ${{ steps.getManualLicenseFile.outputs.filePath }} + name: license-request + path: ci\unity-req-license diff --git a/ci/unity-req-license/Dockerfile b/ci/unity-req-license/Dockerfile new file mode 100644 index 00000000..17791f23 --- /dev/null +++ b/ci/unity-req-license/Dockerfile @@ -0,0 +1,3 @@ +FROM unityci/editor:windows-2019.4.31f1-windows-il2cpp-1 +COPY req-license.bat / +CMD c:\req-license.bat \ No newline at end of file diff --git a/ci/unity-req-license/Unity_v2019.4.31f1.alf b/ci/unity-req-license/Unity_v2019.4.31f1.alf new file mode 100644 index 00000000..52e1a50d --- /dev/null +++ b/ci/unity-req-license/Unity_v2019.4.31f1.alf @@ -0,0 +1 @@ +enContainerAdministratorWindows 10 (10.0.17763) 64bit1000AMD Ryzen 9 5950X 16-Core Processor 3400211022086D50837915Virtual Machine (Microsoft Corporation)2019.4.31f16.x \ No newline at end of file diff --git a/ci/unity-req-license/req-license.bat b/ci/unity-req-license/req-license.bat new file mode 100644 index 00000000..1c4872b5 --- /dev/null +++ b/ci/unity-req-license/req-license.bat @@ -0,0 +1,2 @@ +cd c:\out +"c:\Program Files\Unity\Hub\Editor\2019.4.31f1\Editor\unity.exe" -batchmode -createManualActivationFile -logfile \ No newline at end of file diff --git a/ci/unity-req-license/req-license.ps1 b/ci/unity-req-license/req-license.ps1 new file mode 100644 index 00000000..a6041923 --- /dev/null +++ b/ci/unity-req-license/req-license.ps1 @@ -0,0 +1,2 @@ +docker build -t unity-req-license . +docker run -v "$(pwd):c:\out" -t unity-req-license \ No newline at end of file