|
69 | 69 | # faux-ternary expression to select which platforms to build for each platform vs. duplicating step below.
|
70 | 70 | TARGET_PLATFORMS: ${{ matrix.platform != 'WinUI3' && 'all' || 'all-uwp' }}
|
71 | 71 | TEST_PLATFORM: ${{ matrix.platform != 'WinUI3' && 'UWP' || 'WinAppSdk' }}
|
72 |
| - VERSION_PROPERTY: ${{ github.ref == 'refs/heads/main' && format('-p:PreviewVersion=build.{0}', github.run_number) || format('-p:PreviewVersion=pull-{0}.{1}', github.event.number, github.run_number) }} |
| 72 | + VERSION_PROPERTY: ${{ github.ref == 'refs/heads/main' && format('PreviewVersion=build.{0}', github.run_number) || format('PreviewVersion=pull-{0}.{1}', github.event.number, github.run_number) }} |
73 | 73 |
|
74 | 74 | # Steps represent a sequence of tasks that will be executed as part of the job
|
75 | 75 | steps:
|
@@ -127,19 +127,18 @@ jobs:
|
127 | 127 | working-directory: ./${{ env.MULTI_TARGET_DIRECTORY }}
|
128 | 128 | run: powershell -version 5.1 -command "./UseUnoWinUI.ps1 3" -ErrorAction Stop
|
129 | 129 |
|
130 |
| - # TODO: On Release we should get date from rel/ branch name |
131 | 130 | - name: Format Date/Time of Commit for Package Version
|
132 |
| - id: version-date |
| 131 | + if: ${{ env.IS_RELEASE == 'false' }} |
133 | 132 | run: |
|
134 |
| - echo "VERSION_DATE=$(git log -1 --format=%cd --date=format:%y%m%d)" >> $env:GITHUB_OUTPUT |
| 133 | + echo "VERSION_DATE=$(git log -1 --format=%cd --date=format:%y%m%d)" >> $env:GITHUB_ENV |
135 | 134 |
|
136 | 135 | - name: MSBuild
|
137 |
| - run: msbuild.exe CommunityToolkit.AllComponents.sln /restore /nowarn:MSB4011 -p:Configuration=Release -m -p:DateForVersion=${{ steps.version-date.outputs.VERSION_DATE }} ${{ env.VERSION_PROPERTY }} ${{ env.ENABLE_DIAGNOSTICS == 'true' && '/bl' || '' }} -v:${{ env.MSBUILD_VERBOSITY }} |
| 136 | + run: msbuild.exe CommunityToolkit.AllComponents.sln /restore /nowarn:MSB4011 -p:Configuration=Release -m -p:DateForVersion=${{ env.VERSION_DATE }};${{ env.VERSION_PROPERTY }}; ${{ env.ENABLE_DIAGNOSTICS == 'true' && '/bl' || '' }} -v:${{ env.MSBUILD_VERBOSITY }} |
138 | 137 |
|
139 | 138 | # Build All Packages
|
140 | 139 | - name: pack experiments
|
141 | 140 | working-directory: ./tooling/Scripts/
|
142 |
| - run: ./PackEachExperiment.ps1 -extraBuildProperties "-p:DateForVersion=${{ steps.version-date.outputs.VERSION_DATE }} ${{ env.VERSION_PROPERTY }}" |
| 141 | + run: ./PackEachExperiment.ps1 -extraBuildProperties "-p:DateForVersion=${{ env.VERSION_DATE }};${{ env.VERSION_PROPERTY }};" |
143 | 142 |
|
144 | 143 | # Push Pull Request Packages to our DevOps Artifacts Feed (see nuget.config)
|
145 | 144 | - name: Push Pull Request Packages
|
|
0 commit comments