Wednesday, November 23, 2022
HomeGame DevelopmentCocos in Github Actions - Cocos Creator

Cocos in Github Actions – Cocos Creator


Good day
We’re at present attempting to setup a Steady construct course of utilizing Github Actions. Nonetheless the construct is failing solely on the actions runner with these cryptic logs, if anybody might assist decipher them it could be appreciated.
For context we’re utilizing the home windows platform motion
The command we run to construct: .cocosEditorCocosCreator.exe --project .cocos-arena-gameplay --build "configPath:"challenge://buildConfig_web-mobile.json;""
Thanks

Arguments:
  D:acocos-arena-gameplaycocosEditorCocosCreator.exe: true
  challenge: D:acocos-arena-gameplaycocos-arena-gameplay
  construct: configPath:challenge://buildConfig_web-mobile.json;
  dev: false
  dwelling: C:Usersrunneradmin.CocosCreator
 
[Package] menu@1.0.0 allow
[Package] profile@1.0.0 allow
[Package] challenge@1.0.2 allow
[Package] messages@1.0.0 allow
[Package] program@1.0.0 allow
[Package] tester@1.0.0 allow
[Package] preferences@1.0.0 allow
[EditorQuickCompiler]Model info appears to be like good.
Notice, fast compiler doesn't get launched.
engine:compile-builtin-engine-success (1826ms)
Load engine in D:acocos-arena-gameplaycocosEditorresourcesresources3dengine
Profile modified: engine (modules.includeModules: Second,3d,animation,audio,base,gfx-webgl,gfx-webgl2,intersection-Second,marionette,particle,particle-Second,physics-Second-box2d,physics-physx,primitive,profiler,skeletal-animation,tiled-map,tween,ui,video,webview,xr)
Register native engine in D:acocos-arena-gameplaycocosEditorresourcesresources3denginenative
[Package] engine@1.0.6 allow

[Package] programming@1.0.0 allow

[Package] gadget@1.0.1 allow
[Package] ui-kit@1.0.1 allow
[Package] engine-extends@1.0.0 allow
[Package] asset-db@1.0.0 allow
[Package] scene@1.0.0 allow
[Package] server@1.0.0 allow
[Package] utils@1.0.0 allow
Preview import map: {
  "imports": {
    "cc": "cce:/inside/x/cc",
    "cc/env": "cc/editor/populate-internal-constants",
    "cce.env": "cc/editor/populate-internal-constants",
    "cc/userland/macro": "./x/userland/macro"
  }
}
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@newest --update-db

Why you must do it repeatedly:
https://github.com/browserslist/browserslist#browsers-data-updating






asset-db:start-database (5716ms)




[Package] preview@1.0.1 allow
[Package] animator@1.0.0 allow
pluginManager init: 0.193ms
Profile modified: builder (log.stage: 4)
[Package] builder@1.3.3 allow
[Package] shortcuts@1.0.1 allow
[Package] animation-graph@1.0.0 allow
[Package] about@1.0.0 allow
[Package] belongings@1.0.0 allow
[Package] console@1.0.0 allow
[Package] extension@3.0.16 allow
[Package] hierarchy@1.0.0 allow
[Package] inspector@1.0.0 allow
[Package] lightmap@1.0.4 allow
[Package] localization-editor@1.0.0 allow
[Build] internalRegister pkg(localization-editor) in android platform success!
[Build] internalRegister pkg(localization-editor) in ohos platform success!
[Build] internalRegister pkg(localization-editor) in open-harmonyos platform success!
[Build] internalRegister pkg(localization-editor) in huawei-agc platform success!
[Build] internalRegister pkg(localization-editor) in ios platform success!
[Build] internalRegister pkg(localization-editor) in home windows platform success!
[Build] internalRegister pkg(localization-editor) in mac platform success!
[Build] internalRegister pkg(localization-editor) in linux platform success!
[Build] internalRegister pkg(localization-editor) in alipay-mini-game platform success!
[Build] internalRegister pkg(localization-editor) in bytedance-mini-game platform success!
[Build] internalRegister pkg(localization-editor) in oppo-mini-game platform success!
[Build] internalRegister pkg(localization-editor) in huawei-quick-game platform success!
[Build] internalRegister pkg(localization-editor) in cocos-play platform success!
[Build] internalRegister pkg(localization-editor) in vivo-mini-game platform success!
[Build] internalRegister pkg(localization-editor) in xiaomi-quick-game platform success!
[Build] internalRegister pkg(localization-editor) in baidu-mini-game platform success!
[Build] internalRegister pkg(localization-editor) in wechatgame platform success!
[Build] internalRegister pkg(cocos-service) in linux platform success!
[Build] internalRegister pkg(cocos-service) in alipay-mini-game platform success!
[Build] internalRegister pkg(cocos-service) in bytedance-mini-game platform success!
[Build] internalRegister pkg(cocos-service) in oppo-mini-game platform success!
[Build] internalRegister pkg(cocos-service) in huawei-quick-game platform success!
[Build] internalRegister pkg(cocos-service) in cocos-play platform success!
[Build] internalRegister pkg(cocos-service) in vivo-mini-game platform success!
[Build] internalRegister pkg(cocos-service) in xiaomi-quick-game platform success!
[Build] internalRegister pkg(cocos-service) in baidu-mini-game platform success!
[Build] internalRegister pkg(cocos-service) in wechatgame platform success!
[Build] internalRegister pkg(cocos-service) in link-sure platform success!
[Build] internalRegister pkg(cocos-service) in qtt platform success!
[Build] internalRegister pkg(cocos-service) in web-desktop platform success!
[Build] internalRegister pkg(cocos-service) in web-mobile platform success!
[Build] internalRegister pkg(cocos-service) in cocos-runtime platform success!
[Build] internalRegister pkg(cocos-service) in xr-meta platform success!
[Build] internalRegister pkg(cocos-service) in xr-huaweivr platform success!
[Build] internalRegister pkg(cocos-service) in xr-pico platform success!
[Build] internalRegister pkg(cocos-service) in xr-rokid platform success!
[Build] internalRegister pkg(cocos-service) in xr-monado platform success!
[Build] internalRegister pkg(cocos-service) in ar-android platform success!
[Build] internalRegister pkg(cocos-service) in ar-ios platform success!
[Build-plugin] register pkg cocos-service: 2.265ms
[Im-plugin] Verify im-plugin model.
init failed, can not get session id
[Package] im-plugin@3.0.9 allow
[Package] colyseus-sdk@0.14.0 allow
[Im-plugin] No on-line data of im-plugin.
asset-db:startup-await-database (41508ms)
asset-db:prepared (80183ms)
Invaild platform: undefined
Verify and full construct choices { 'configPath:challenge://buildConfig_web-mobile.json': undefined }



TypeError: Can't convert undefined or null to object
    at Perform.keys (<nameless>)
    at PluginManager.getOptionsByPlatform (D:acocos-arena-gameplaycocosEditorresourcesapp.asarbuiltinbuilderdistbrowserplugin.ccc:1:5976)
    at PluginManager.checkOptions (D:acocos-arena-gameplaycocosEditorresourcesapp.asarbuiltinbuilderdistbrowserplugin.ccc:1:4086)
    at D:acocos-arena-gameplaycocosEditorresourcesapp.asarbuiltinbuilderdistbrowsertasks.ccc:1:1850


Appears the problem was primarily with the configpath construct possibility, the corrected string was:
.cocosEditorCocosCreator.exe --project .cocos-arena-gameplay --build "configPath=buildConfig_web-mobile.json;"

Because the motion was unable to find the buildconfig file and had incorrect syntax

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments