Skip to content

Commit 83a26db

Browse files
committed
wip: read .alf from secrets
1 parent dbc617c commit 83a26db

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

.github/workflows/linux-test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
os:
107107
- ubuntu-24.04
108108
unityVersion:
109-
- 6000.0.33f1 # FIXME: use >= 6000.0.58f2
109+
- 6000.0.58f2
110110
- 2022.3.55f1 # FIXME: use >= 2022.3.62f2
111111
steps:
112112
- name: Install UnityEditor
@@ -118,8 +118,13 @@ jobs:
118118
sudo chmod +x /usr/bin/unity-editor
119119
120120
- name: Generate a license activation file
121+
env:
122+
UNITY_ALF: '${{ secrets.UNITY_ALF }}'
121123
run: |
122-
unity-editor -quit -createManualActivationFile -logFile || true
124+
echo "$UNITY_ALF" > Unity_v${{ matrix.unityVersion }}.alf
125+
cat Unity_v${{ matrix.unityVersion }}.alf
126+
echo '${{ secrets.UNITY_ALF }}'
127+
123128
- name: Request a Unity license file
124129
env:
125130
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}

.github/workflows/macos-test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,10 @@ jobs:
107107
sudo installer -package Unity.pkg -target /
108108
109109
- name: Generate a license activation file
110+
env:
111+
UNITY_ALF: '${{ secrets.UNITY_ALF }}'
110112
run: |
111-
/Applications/Unity/Unity.app/Contents/MacOS/Unity -quit -batchmode -createManualActivationFile -logFile || true
113+
echo "$UNITY_ALF" > Unity_v${{ matrix.unity.version }}.alf
112114
- name: Request a Unity license file
113115
env:
114116
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}

.github/workflows/windows-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ jobs:
105105
exit 0
106106
107107
- name: Generate a license activation file
108+
env:
109+
UNITY_ALF: '${{ secrets.UNITY_ALF }}'
108110
run: |
109-
Start-Process -NoNewWindow -Wait -PassThru "C:\Program Files\Unity\Hub\Editor\${{ matrix.unity.version }}\Editor\Unity.exe" -ArgumentList "-quit -batchmode -createManualActivationFile -logfile"
110-
exit 0
111-
timeout-minutes: 1
111+
echo "$env:UNITY_ALF" > Unity_v${{ matrix.unity.version }}.alf
112112
- name: Request a Unity license file
113113
env:
114114
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}

0 commit comments

Comments
 (0)