@@ -184,15 +184,72 @@ jobs:
184184 - name : setup Xcode version
185185 if : runner.os == 'macOS'
186186 run : sudo xcode-select -s /Applications/Xcode_${{ env.xcodeVersion }}.app/Contents/Developer
187- - id : unity_setup
188- uses : ./gha/unity
187+
188+ - name : Setup Unity (Android)
189+ if : ${{ contains(matrix.platform, 'Android') }}
190+ uses : kuler90/setup-unity@v1
191+ timeout-minutes : 30
192+ with :
193+ unity-version : 2020.3.34f1
194+ unity-modules : android
195+ # Because of a bug, include iOS for the editor tools
196+ - name : Setup Unity (Android, Part 2)
197+ if : ${{ contains(matrix.platform, 'Android') }}
198+ uses : kuler90/setup-unity@v1
199+ timeout-minutes : 30
200+ with :
201+ unity-version : 2020.3.34f1
202+ unity-modules : ios
203+
204+ - name : Setup Unity (iOS)
205+ if : ${{ contains(matrix.platform, 'iOS') }}
206+ uses : kuler90/setup-unity@v1
207+ timeout-minutes : 30
208+ with :
209+ unity-version : 2020.3.34f1
210+ unity-modules : ios
211+
212+ - name : Setup Unity (Desktop Windows)
213+ if : ${{ !contains(matrix.platform, 'Android') && !contains(matrix.platform, 'iOS') && runner.os != 'macOS' }}
214+ uses : kuler90/setup-unity@v1
215+ timeout-minutes : 30
216+ with :
217+ unity-version : 2020.3.34f1
218+ unity-modules : mac-mono
219+ - name : Setup Unity (Desktop Windows Part 2)
220+ if : ${{ !contains(matrix.platform, 'Android') && !contains(matrix.platform, 'iOS') && runner.os != 'macOS' }}
221+ uses : kuler90/setup-unity@v1
222+ timeout-minutes : 30
223+ with :
224+ unity-version : 2020.3.34f1
225+ unity-modules : linux-mono
226+
227+ - name : Setup Unity (Desktop macOS)
228+ if : ${{ !contains(matrix.platform, 'Android') && !contains(matrix.platform, 'iOS') && runner.os == 'macOS' }}
229+ uses : kuler90/setup-unity@v1
230+ timeout-minutes : 30
231+ with :
232+ unity-version : 2020.3.34f1
233+ unity-modules : windows-mono
234+ - name : Setup Unity (Desktop macOS Part 2)
235+ if : ${{ !contains(matrix.platform, 'Android') && !contains(matrix.platform, 'iOS') && runner.os == 'macOS' }}
236+ uses : kuler90/setup-unity@v1
189237 timeout-minutes : 30
190238 with :
191- version : ${{ matrix.unity_version }}
192- platforms : ${{ matrix.platform }}
193- username : ${{ secrets.UNITY_USERNAME }}
194- password : ${{ secrets.UNITY_PASSWORD }}
195- serial_ids : ${{ secrets.SERIAL_ID }}
239+ unity-version : 2020.3.34f1
240+ unity-modules : linux-mono
241+
242+ - name : Activate Unity license
243+ shell : bash
244+ run : |
245+ python gha/unity/unity_installer.py --activate_license \
246+ --version 2020 \
247+ --username "${{ secrets.UNITY_USERNAME }}" \
248+ --password "${{ secrets.UNITY_PASSWORD }}" \
249+ --serial_ids "${{ secrets.SERIAL_ID }}" \
250+ --logfile "testapps/activate_license.log"
251+ cat testapps/activate_license.log
252+
196253 - name : Prepare for integration tests
197254 timeout-minutes : 10
198255 shell : bash
@@ -218,21 +275,28 @@ jobs:
218275 fi
219276 python scripts/gha/build_testapps.py \
220277 --t ${{ needs.check_and_prepare.outputs.apis }} \
221- --u "${{ steps.unity_setup.outputs.unity_version }}" \
278+ --u 2020.3.34f1 \
222279 --p "${{ matrix.platform }}" \
223280 --ios_sdk "${{ matrix.ios_sdk }}" \
224281 --plugin_dir ~/Downloads/firebase_unity_sdk \
225282 --output_directory "${{ github.workspace }}" \
226283 --artifact_name "${{ steps.matrix_info.outputs.info }}" \
227284 --force_latest_runtime \
228285 --ci
286+
229287 - name : Return Unity license
230- # Always returns true, even when job failed or canceled. But will not run when a critical failure prevents the task from running.
231288 if : always()
232- uses : ./gha/unity
289+ uses : nick-invision/retry@v2
233290 with :
234- version : ${{ matrix.unity_version }}
235- release_license : " true"
291+ timeout_minutes : 5
292+ max_attempts : 2
293+ shell : bash
294+ command : |
295+ python gha/unity/unity_installer.py --release_license \
296+ --version 2020 \
297+ --logfile "testapps/release_license.log"
298+ cat testapps/release_license.log
299+
236300 - name : Prepare results summary artifact
237301 if : ${{ !cancelled() }}
238302 shell : bash
@@ -358,14 +422,23 @@ jobs:
358422 shell : bash
359423 run : |
360424 pip install -r scripts/gha/requirements.txt
361- - id : unity_setup
362- uses : ./gha/ unity
425+ - name : Setup Unity
426+ uses : kuler90/setup- unity@v1
363427 timeout-minutes : 30
364428 with :
365- version : ${{ matrix.unity_version }}
366- username : ${{ secrets.UNITY_USERNAME }}
367- password : ${{ secrets.UNITY_PASSWORD }}
368- serial_ids : ${{ secrets.SERIAL_ID }}
429+ unity-version : 2020.3.34f1
430+ # Install ios for the editor tools
431+ unity-modules : ios
432+ - name : Activate Unity license
433+ shell : bash
434+ run : |
435+ python gha/unity/unity_installer.py --activate_license \
436+ --version 2020 \
437+ --username "${{ secrets.UNITY_USERNAME }}" \
438+ --password "${{ secrets.UNITY_PASSWORD }}" \
439+ --serial_ids "${{ secrets.SERIAL_ID }}" \
440+ --logfile "testapps/activate_license.log"
441+ cat testapps/activate_license.log
369442 - name : Prepare for integration tests
370443 timeout-minutes : 10
371444 shell : bash
@@ -389,20 +462,25 @@ jobs:
389462 fi
390463 python scripts/gha/build_testapps.py \
391464 --t ${{ needs.check_and_prepare.outputs.apis }} \
392- --u ${{ steps.unity_setup.outputs.unity_version }} \
465+ --u 2020.3.34f1 \
393466 --p Playmode \
394467 --plugin_dir ~/Downloads/firebase_unity_sdk \
395468 --output_directory "${{ github.workspace }}" \
396469 --artifact_name "${{ steps.matrix_info.outputs.info }}" \
397470 --force_latest_runtime \
398471 --ci
399472 - name : Return Unity license
400- # Always returns true, even when job failed or canceled. But will not run when a critical failure prevents the task from running.
401473 if : always()
402- uses : ./gha/unity
474+ uses : nick-invision/retry@v2
403475 with :
404- version : ${{ matrix.unity_version }}
405- release_license : " true"
476+ timeout_minutes : 5
477+ max_attempts : 2
478+ shell : bash
479+ command : |
480+ python gha/unity/unity_installer.py --release_license \
481+ --version 2020 \
482+ --logfile "testapps/release_license.log"
483+ cat testapps/release_license.log
406484 - name : Prepare results summary artifact
407485 if : ${{ !cancelled() }}
408486 shell : bash
0 commit comments