You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove thisbuild artifacts and support preprocessor symbols (#1374)
This is a proposed fix for
https://github.com/orgs/microsoft/projects/521/views/1?pane=issue&itemId=91449371
and will greatly improve the capabilities of build modes (as requested
by partners during our roundtable at Directions EMEA).
### New Repository Settings
-
[`shortLivedArtifactsRetentionDays`](https://aka.ms/algosettings#shortLivedArtifactsRetentionDays)
determines the number of days to keep short lived build artifacts (f.ex
build artifacts from pull request builds, next minor or next major
builds). 1 is default. 0 means use GitHub default.
-
[`preProcessorSymbols`](https://aka.ms/algosettings#preProcessorSymbols)
is a list of preprocessor symbols to use when building the apps. This
setting can be specified in workflow specific settings files or in
conditional settings.
### Change in published artifacts
When using `useProjectDependencies` in a multi-project repository, AL-Go
for GitHub used to generate short lived build artifacts called
`thisBuild-<projectnaame>-<type>-...`. This is no longer the case.
Instead, normal build artifacts will be published and used by depending
projects. The retention period for the artifacts generated are
controlled by a settings called
[`shortLivedArtifactsRetentionDays`](https://aka.ms/algosettings#shortLivedArtifactsRetentionDays).
### Preprocessor symbols
It is now possible to define preprocessor symbols, which will be used
when building your apps using the
[`preProcessorSymbols`](https://aka.ms/algosettings#preProcessorSymbols)
setting. This setting can be specified in workflow specific settings
file or it can be used in conditional settings.
---------
Co-authored-by: freddydk <[email protected]>
throw"No cleanModePreprocessorSymbols defined in settings.json for this project. Please add the preprocessor symbols to use when building in clean mode or disable CLEAN mode."
377
-
}
379
+
if ($runAlPipelineParams.Keys-notcontains'preprocessorsymbols') {
380
+
$runAlPipelineParams["preprocessorsymbols"] =@()
381
+
}
378
382
379
-
if ($runAlPipelineParams.Keys-notcontains'preprocessorsymbols') {
380
-
$runAlPipelineParams["preprocessorsymbols"] =@()
381
-
}
383
+
# REMOVE AFTER April 1st 2025 --->
384
+
if ($settings.ContainsKey('cleanModePreprocessorSymbols')) {
Write-Warning-message "cleanModePreprocessorSymbols is deprecated. See https://aka.ms/ALGoDeprecations#cleanModePreprocessorSymbols for more information."
This file contains a list of deprecations in AL-Go for GitHub, sorted by the date after which the support will be removed.
4
+
5
+
## Old AL-Go versions might stop working any time
6
+
7
+
Microsoft recommends that you always run the latest version of AL-Go for GitHub.
8
+
9
+
Old versions of AL-Go for GitHub uses old and unsupported versions of GitHub actions, which might be removed or no longer work due to unresolved dependencies no longer being installed on the GitHub runners.
10
+
11
+
When handling support requests, we will request that you to use the latest version of AL-Go for GitHub and in general, fixes will only be made available in a preview version of AL-Go for GitHub and subsequently in the next version released.
12
+
13
+
## Changes in effect after April 1st 2025
14
+
15
+
<aid="cleanModePreprocessorSymbols"></a>
16
+
17
+
### Setting `cleanModePreprocessorSymbols` will no longer be supported
18
+
19
+
[preprocessorSymbols](https://aka.ms/algosettings#preprocessorSymbols) are now supported as a global setting and can be applied to buildModes using [Conditional Settings](https://aka.ms/algosettings#conditional-settings). Example:
0 commit comments