Supported way for Create Release to include all buildModes artifacts? #2243
Unanswered
FBakkensen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I’m using
buildModeswith conditional settings to build the same app against multiple Business Central major versions.This works correctly in CI/CD. The build matrix produces artifacts shaped like:
The
buildModessetup follows the guidance from discussion #2138: one build mode per BC major version, with conditional settings forartifact/applicationDependency.Minimal reproduction shape:
buildModes:default,bc27,bc26.artifact/applicationDependency.Create ReleasewithbuildVersion: latest.Apps/TestApps, not thebc27*/bc26*artifacts.The gap appears when running
Create ReleasewithbuildVersion: latest.The GitHub Release only gets the default artifacts:
It does not get the build-mode artifacts:
This looks similar to discussion #900, where
Create Releaseignored a non-default build mode.From reading v9.0,
DetermineProjectsToBuildresolvesBuildOrderJson[].buildDimensionsfrombuildModes, and CI/CD uses that as the matrix. ButDetermineArtifactsForReleasereceivesProjectsJsonand searches default artifact names for the selectedbuildVersion, so it does not appear to mirror the CI/CD build-mode matrix.What is the supported AL-Go way to make
Create Releaseinclude all artifacts produced by thebuildModesmatrix for the selectedbuildVersion?Should
Create Releaseinclude allbuildModesartifacts by default? If that would be breaking for existing repositories, would an opt-in setting such asreleaseBuildModesorincludeBuildModeArtifactsInReleasebe the intended design?Would the intended implementation be to pass build dimensions/build modes into
DetermineArtifactsForReleaseand includeApps,TestApps, andDependenciesfor each resolved build mode?All reactions