Build subtarget support for Unity 2021.2+#532
Merged
davidmfinol merged 2 commits intogame-ci:mainfrom Apr 15, 2023
SunLionGames:build-subtarget
Merged
Build subtarget support for Unity 2021.2+#532davidmfinol merged 2 commits intogame-ci:mainfrom SunLionGames:build-subtarget
davidmfinol merged 2 commits intogame-ci:mainfrom
SunLionGames:build-subtarget
Conversation
Allows passing the -standaloneBuildSubtarget parameter via customParameters in order to facilitate dedicated server builds. Since Unity introduced the subtarget option in 2021.2, this parameter only takes effect in supported Unity versions.
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #532 +/- ##
========================================
Coverage 36.97% 36.97%
========================================
Files 77 77
Lines 3032 3032
Branches 586 613 +27
========================================
Hits 1121 1121
+ Misses 1908 1758 -150
- Partials 3 153 +150 |
This was referenced Apr 15, 2023
Certain versions of Unity do not have a value for `NoSubtarget`. Using `default` will be more robust against churn in this area of Unity's API.
Contributor
Author
|
Apologies, did not realize I could run these tests locally on my fork before opening the PR. Seems this API unsurprisingly has gone through some churn and the fallback value I was using isn't available on all editor versions. Swapped it to |
This was referenced Mar 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Changes
Documentation PR: game-ci/documentation#389
Discussion: game-ci/documentation#240
Checklist
code of conduct
a PR in the documentation repo)