Skip to content

Commit a026baf

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

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

.github/workflows/linux-test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
type: boolean
99
default: false
1010
secrets:
11+
UNITY_ALF:
12+
required: true
1113
UNITY_EMAIL:
1214
required: true
1315
UNITY_PASSWORD:
@@ -106,7 +108,7 @@ jobs:
106108
os:
107109
- ubuntu-24.04
108110
unityVersion:
109-
- 6000.0.33f1 # FIXME: use >= 6000.0.58f2
111+
- 6000.0.58f2
110112
- 2022.3.55f1 # FIXME: use >= 2022.3.62f2
111113
steps:
112114
- name: Install UnityEditor
@@ -118,8 +120,11 @@ jobs:
118120
sudo chmod +x /usr/bin/unity-editor
119121
120122
- name: Generate a license activation file
123+
env:
124+
UNITY_ALF: '${{ secrets.UNITY_ALF }}'
121125
run: |
122-
unity-editor -quit -createManualActivationFile -logFile || true
126+
echo "$UNITY_ALF" > Unity_v${{ matrix.unityVersion }}.alf
127+
123128
- name: Request a Unity license file
124129
env:
125130
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}

.github/workflows/macos-test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
type: boolean
99
default: false
1010
secrets:
11+
UNITY_ALF:
12+
required: true
1113
UNITY_EMAIL:
1214
required: true
1315
UNITY_PASSWORD:
@@ -107,8 +109,10 @@ jobs:
107109
sudo installer -package Unity.pkg -target /
108110
109111
- name: Generate a license activation file
112+
env:
113+
UNITY_ALF: '${{ secrets.UNITY_ALF }}'
110114
run: |
111-
/Applications/Unity/Unity.app/Contents/MacOS/Unity -quit -batchmode -createManualActivationFile -logFile || true
115+
echo "$UNITY_ALF" > Unity_v${{ matrix.unity.version }}.alf
112116
- name: Request a Unity license file
113117
env:
114118
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}

.github/workflows/run-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
ref: ${{ github.event.pull_request.head.sha }}
2424
is_master: ${{ github.ref_name == 'master' }}
2525
secrets:
26+
UNITY_ALF: ${{ secrets.UNITY_ALF }}
2627
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
2728
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
2829
UNITY_TOTP_KEY: ${{ secrets.UNITY_TOTP_KEY }}
@@ -34,6 +35,7 @@ jobs:
3435
ref: ${{ github.event.pull_request.head.sha }}
3536
is_master: ${{ github.ref_name == 'master' }}
3637
secrets:
38+
UNITY_ALF: ${{ secrets.UNITY_ALF }}
3739
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
3840
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
3941
UNITY_TOTP_KEY: ${{ secrets.UNITY_TOTP_KEY }}
@@ -44,6 +46,7 @@ jobs:
4446
with:
4547
ref: ${{ github.event.pull_request.head.sha }}
4648
secrets:
49+
UNITY_ALF: ${{ secrets.UNITY_ALF }}
4750
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
4851
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
4952
UNITY_TOTP_KEY: ${{ secrets.UNITY_TOTP_KEY }}

.github/workflows/windows-test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
ref:
66
type: string
77
secrets:
8+
UNITY_ALF:
9+
required: true
810
UNITY_EMAIL:
911
required: true
1012
UNITY_PASSWORD:
@@ -105,10 +107,10 @@ jobs:
105107
exit 0
106108
107109
- name: Generate a license activation file
110+
env:
111+
UNITY_ALF: '${{ secrets.UNITY_ALF }}'
108112
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
113+
echo "$env:UNITY_ALF" > Unity_v${{ matrix.unity.version }}.alf
112114
- name: Request a Unity license file
113115
env:
114116
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}

0 commit comments

Comments
 (0)