game-ci / unity-builder

Build Unity projects for different platforms
https://github.com/marketplace/actions/unity-builder
MIT License
839 stars 239 forks source link

unknown option when building unity project for webgl on aws cloudrunner #560

Open dev-rsh opened 1 year ago

dev-rsh commented 1 year ago

Hello I am using unity-builder to build my unity project for webgl target platform. Currently I am encountering problems with the build itself. The build outputs the following error

Error: error: unknown option '--logFile'

I'm following the official documentation and the configuration that I'm using in my workflow is as following:

      - uses: game-ci/unity-builder@cloud-runner-develop
        id: aws-fargate-unity-build
        env:
          UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
          UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
          UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}        
        with:
          providerStrategy: aws
          targetPlatform: WebGL
          gitPrivateToken: ${{ secrets.GH_TOKEN }}
          containerCpu: 4096
          containerMemory: 8192

Is there any problem with my configuration? any help would be greatly appreciated! Thanks!

cloudymax commented 10 months ago

I'm seeing this as well on self-hosted k8s. Looks like this error is preventing jobs/pods from knowing when the build has finished.

 cache key  selection                                                                   
│ ::warning::cache item  doesn't exist /data/34-webgl-ggu0/repo/Library                        
│ [Client] RunCustomHookFiles: before-build                                                   
│ [Client] {                                                                                   
│     "errno": -2,                                                                             
│     "syscall": "scandir",                                                                    
│     "code": "ENOENT",                                                                        
│     "path": "/data/34-webgl-ggu0/repo/game-ci/hooks"                                         
│ }                                                                                            
│ game ci start                                                                                
│ error: unknown option '--logFile'
Screenshot 2023-10-29 at 12 26 50