Build on Unity 2021.3 agent#1530
Conversation
|
Not stalled. Just erroring out. |
|
@AArnott |
|
I had to bring back |
|
This command is brought from MemoryPack's CI, which is similarly configured and running on 2021.3. It is using https://github.com/game-ci/unity-builder |
|
I tried the display emulation, but with I can try the docker image you suggested too. |
This reverts commit 3c1fadc.
|
Well, building works when I run it on the agent myself, using the same script. I don't yet know why it fails when the build is orchestrated by AzP. |
|
remove only |
|
|
I figured as much. But it didn't work with that switch (and without -noUpm) either. I think that's when it appeared to hang, but I don't remember. I'll try again. |
|
@neuecc What if we try switching at least the unity build to github actions to match memorypack? I pushed a change to this PR to do that, but it'll require access to your unity license secret. And it doesn't appear to be running in this PR and I'm not sure why. |
|
I've added |
|
@neuecc The new github workflow still isn't running. Do you have any control as repo owner over that? Or if we have to merge to develop before it works, and odds are good it won't, are you ok to hash it out together after the merge? |
|
ah, it is filter for |
|
Oh, I forgot to enable the |
|
Originally, secret using from matrix, change to same way? build-unity:
if: "((github.event_name == 'push' && github.repository_owner == 'Cysharp') || startsWith(github.event.pull_request.head.label, 'Cysharp:'))"
strategy:
matrix:
unity: ["2021.3.11f1"]
include:
- unity: 2021.3.11f1
license: UNITY_LICENSE_2021
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
# Execute scripts: RuntimeUnitTestToolkit
# /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -projectPath . -executeMethod UnitTestBuilder.BuildUnitTest /headless /ScriptBackend mono /BuildTarget StandaloneLinux64
- name: Build UnitTest(Linux64, mono)
uses: game-ci/unity-builder@v2
env:
UNITY_LICENSE: ${{ secrets[matrix.license] }} |
|
@neuecc It seems this repo may need more than just the UNITY_LICENSE_2021 secret. Per this docs, you also need to set |
|
Per this doc, builds from repository forks don't get access to your secrets (which makes sense). This PR comes from a fork. I'll recreate from within your repo. |



This should fix the unity build that broke in #1497, and open the way to C# 9 and netstandard2.1 targeting.