Twilight-Studioo / production

1 stars 0 forks source link

Question related to unified-check-ci action #258

Open SimonMeysman opened 1 month ago

SimonMeysman commented 1 month ago

Hi, first of all, feel free to disregard this issue if you want, it has no direct impact on your project.

I am trying to use GameCI unity build with buildMethod: Packages.Rider.Editor.RiderScriptEditor.SyncSolution just like you are using in the unified-check-ci github action. My understanding is that that build method should create a visual studio c++ project based on the c# code written. However, after running the action, I am unable to find those generated files, even when the action is successful. Have you used the files generated by this action, or are you only checking if the code compilation succeeds?

Matuyuhi commented 1 month ago

Hello! This action only checks if the c# code compiled successfully. If you have any more questions, please feel free to ask!

Matuyuhi commented 1 month ago

Incidentally, the visual studio project file is generated by this action. Previously, we used to do a style check of the script in Qodana right after this action.

SimonMeysman commented 1 month ago

Ok, it seems like you cannot help me any further then. I am looking for a way to compile my Unity project up until the phase where the C++ project is generated, as I need to insert code in the main.cpp to do some checks before the actual unity engine starts up, and this is not possible from the C# code. On my local windows machine I managed to do so by running this command, "C:\Program Files\Unity\Hub\Editor\6000.0.23f1\Editor\Unity.exe" -batchmode -nographics -buildwindowsplayer "C:\Dev\windows-sln-cmd\" -logFile cmd-build-log.txt -customBuildName MyProject -projectPath Client -executeMethod Packages.Rider.Editor.RiderScriptEditor.SyncSolution -quit but I cannot seem to find an equivalent solution to run in a Github Action.

Matuyuhi commented 1 month ago

I understood what you wanted to do. It may be possible to achieve this by pulling the docker image of game-ci in the action. I'm rooting for you.