|
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('PreviewVersion=build.{0}', github.run_number) || format('PreviewVersion=pull-{0}.{1}', github.event.number, github.run_number) }} |
| 72 | + VERSION_PROPERTY: ${{ github.ref == 'refs/heads/main' && format('build.{0}', github.run_number) || format('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:
|
@@ -133,12 +133,20 @@ jobs:
|
133 | 133 | echo "VERSION_DATE=$(git log -1 --format=%cd --date=format:%y%m%d)" >> $env:GITHUB_ENV
|
134 | 134 |
|
135 | 135 | - name: MSBuild
|
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 }} |
| 136 | + run: > |
| 137 | + msbuild.exe /restore /nowarn:MSB4011 |
| 138 | + /p:Configuration=Release |
| 139 | + /m |
| 140 | + /p:DateForVersion=${{ env.VERSION_DATE }} |
| 141 | + /p:PreviewVersion=${{ env.VERSION_PROPERTY }} |
| 142 | + ${{ env.ENABLE_DIAGNOSTICS == 'true' && '/bl' || '' }} |
| 143 | + /v:${{ env.MSBUILD_VERBOSITY }} |
| 144 | + CommunityToolkit.AllComponents.sln |
137 | 145 |
|
138 | 146 | # Build All Packages
|
139 | 147 | - name: pack experiments
|
140 | 148 | working-directory: ./tooling/Scripts/
|
141 |
| - run: ./PackEachExperiment.ps1 -extraBuildProperties "-p:DateForVersion=${{ env.VERSION_DATE }};${{ env.VERSION_PROPERTY }};" |
| 149 | + run: ./PackEachExperiment.ps1 -date ${{ env.VERSION_DATE }} -postfix ${{ env.VERSION_PROPERTY }} |
142 | 150 |
|
143 | 151 | # Push Pull Request Packages to our DevOps Artifacts Feed (see nuget.config)
|
144 | 152 | - name: Push Pull Request Packages
|
|
0 commit comments