-
-
Notifications
You must be signed in to change notification settings - Fork 131
Change customBuildprofile to activeBuildProfile and improve validation #520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Updated build profile loading and validation logic.
WalkthroughUpdates example/BuildScript.cs to switch profile key usage to activeBuildProfile, revise buildTarget parsing/validation with enum checks, and consolidate error handling and exit codes when either buildTarget or activeBuildProfile is required. No public API signatures changed. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant BuildScript
participant AssetDatabase
rect rgba(230,245,255,0.6)
Note over BuildScript: GetValidatedOptions
User->>BuildScript: Invoke with args
BuildScript->>BuildScript: Parse -buildTarget (out var)
alt buildTarget provided
BuildScript->>BuildScript: Validate enum value
alt Not defined
BuildScript-->>User: Log "<value> is not a defined BuildTarget"
BuildScript-->>User: Exit code 121
else Defined
BuildScript-->>User: Proceed
end
else buildTarget not provided
BuildScript->>AssetDatabase: Check activeBuildProfile
alt Missing activeBuildProfile
BuildScript-->>User: Log "Missing argument -buildTarget or -activeBuildProfile"
BuildScript-->>User: Exit code 120
else Present
BuildScript-->>User: Proceed with profile
end
end
end
rect rgba(235,255,235,0.6)
Note over BuildScript,AssetDatabase: BuildWithProfile
BuildScript->>AssetDatabase: Load activeBuildProfile
AssetDatabase-->>BuildScript: Profile data
BuildScript-->>User: Build using activeBuildProfile
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Visit the preview URL for this PR (updated for commit 9f8953a): https://game-ci-5559f--pr520-davidmfinol-patch-6-2enuk897.web.app (expires Thu, 09 Oct 2025 05:05:51 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 1f0574f15f83e11bfc148eae8646486a6d0e078b |
|
@davidmfinol thank you. I didn't follow through to add docs |

Update to support game-ci/unity-builder#738
Changes
Checklist
code of conduct
Summary by CodeRabbit