Cocos in Github Actions

Hello
We are currently trying to setup a Continuous build process using Github Actions. However the build is failing only on the actions runner with these cryptic logs, if anyone could help decipher them it would be appreciated.
For context we are using the windows platform action
The command we run to build: .\cocosEditor\CocosCreator.exe --project .\cocos-arena-gameplay --build "configPath:"project://buildConfig_web-mobile.json;""
Thank you

Arguments:
  D:\a\cocos-arena-gameplay\cocosEditor\CocosCreator.exe: true
  project: D:\a\cocos-arena-gameplay\cocos-arena-gameplay
  build: configPath:project://buildConfig_web-mobile.json;
  dev: false
  home: C:\Users\runneradmin\.CocosCreator
 
[Package] menu@1.0.0 enable
[Package] profile@1.0.0 enable
[Package] project@1.0.2 enable
[Package] messages@1.0.0 enable
[Package] program@1.0.0 enable
[Package] tester@1.0.0 enable
[Package] preferences@1.0.0 enable
[EditorQuickCompiler]Version information looks good.
Note, quick compiler does not get launched.
engine:compile-builtin-engine-success (1826ms)
Load engine in D:\a\cocos-arena-gameplay\cocosEditor\resources\resources\3d\engine
Profile changed: engine (modules.includeModules: 2d,3d,animation,audio,base,gfx-webgl,gfx-webgl2,intersection-2d,marionette,particle,particle-2d,physics-2d-box2d,physics-physx,primitive,profiler,skeletal-animation,tiled-map,tween,ui,video,webview,xr)
Register native engine in D:\a\cocos-arena-gameplay\cocosEditor\resources\resources\3d\engine\native
[Package] engine@1.0.6 enable

[Package] programming@1.0.0 enable

[Package] device@1.0.1 enable
[Package] ui-kit@1.0.1 enable
[Package] engine-extends@1.0.0 enable
[Package] asset-db@1.0.0 enable
[Package] scene@1.0.0 enable
[Package] server@1.0.0 enable
[Package] utils@1.0.0 enable
Preview import map: {
  "imports": {
    "cc": "cce:/internal/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@latest --update-db

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






asset-db:start-database (5716ms)




[Package] preview@1.0.1 enable
[Package] animator@1.0.0 enable
pluginManager init: 0.193ms
Profile changed: builder (log.level: 4)
[Package] builder@1.3.3 enable
[Package] shortcuts@1.0.1 enable
[Package] animation-graph@1.0.0 enable
[Package] about@1.0.0 enable
[Package] assets@1.0.0 enable
[Package] console@1.0.0 enable
[Package] extension@3.0.16 enable
[Package] hierarchy@1.0.0 enable
[Package] inspector@1.0.0 enable
[Package] lightmap@1.0.4 enable
[Package] localization-editor@1.0.0 enable
[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 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] Check im-plugin version.
init failed, cannot get session id
[Package] im-plugin@3.0.9 enable
[Package] colyseus-sdk@0.14.0 enable
[Im-plugin] No online info of im-plugin.
asset-db:startup-await-database (41508ms)
asset-db:ready (80183ms)
Invaild platform: undefined
Check and complete build options { 'configPath:project://buildConfig_web-mobile.json': undefined }



TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at PluginManager.getOptionsByPlatform (D:\a\cocos-arena-gameplay\cocosEditor\resources\app.asar\builtin\builder\dist\browser\plugin.ccc:1:5976)
    at PluginManager.checkOptions (D:\a\cocos-arena-gameplay\cocosEditor\resources\app.asar\builtin\builder\dist\browser\plugin.ccc:1:4086)
    at D:\a\cocos-arena-gameplay\cocosEditor\resources\app.asar\builtin\builder\dist\browser\tasks.ccc:1:1850

Seems the issue was mainly with the configpath build option, the corrected string was:
.\cocosEditor\CocosCreator.exe --project .\cocos-arena-gameplay --build "configPath=buildConfig_web-mobile.json;"

As the action was unable to locate the buildconfig file and had incorrect syntax