|
94 | 94 | - ${{ if eq(matrix.BuildConfiguration, 'Debug') }}: |
95 | 95 | # The build is more likely to crash after we've started other bits that |
96 | 96 | # take up memory. Do the expensive parts of the build first. |
97 | | - - script: yarn windows --no-launch --no-packager --no-deploy --no-autolink --arch ${{ matrix.BuildPlatform }} --logging --buildLogDirectory $(BuildLogDirectory) |
98 | | - displayName: yarn windows --no-launch |
99 | | - workingDirectory: packages/integration-test-app |
| 97 | + - template: ../templates/run-windows-with-certificates.yml |
| 98 | + parameters: |
| 99 | + buildEnvironment: ${{ parameters.BuildEnvironment }} |
| 100 | + buildConfiguration: ${{ matrix.BuildConfiguration }} |
| 101 | + buildPlatform: ${{ matrix.BuildPlatform }} |
| 102 | + buildLogDirectory: $(BuildLogDirectory) |
| 103 | + workingDirectory: packages/integration-test-app |
| 104 | + moreMSBuildProps: --no-packager --no-deploy --no-autolink |
| 105 | + errorOnNuGetLockChanges: false # Sometimes the content hashes of NuGet packages are wrong on VMs, workaround for later .NET versions don't work for UWP C#. |
100 | 106 |
|
101 | 107 | - powershell: Start-Process npm.cmd -ArgumentList "run","start" |
102 | 108 | displayName: Start packager |
@@ -132,8 +138,18 @@ jobs: |
132 | 138 | workingDirectory: packages/integration-test-app |
133 | 139 |
|
134 | 140 | - ${{ if eq(matrix.BuildConfiguration, 'Release') }}: |
135 | | - - script: yarn windows --release ${{ matrix.DeployOptions }} --no-packager --no-autolink --arch ${{ matrix.BuildPlatform }} --logging --buildLogDirectory $(BuildLogDirectory) |
136 | | - displayName: yarn windows --release |
| 141 | + - template: ../templates/run-windows-with-certificates.yml |
| 142 | + parameters: |
| 143 | + buildEnvironment: ${{ parameters.BuildEnvironment }} |
| 144 | + buildConfiguration: ${{ matrix.BuildConfiguration }} |
| 145 | + buildPlatform: ${{ matrix.BuildPlatform }} |
| 146 | + buildLogDirectory: $(BuildLogDirectory) |
| 147 | + workingDirectory: packages/integration-test-app |
| 148 | + moreMSBuildProps: ${{ matrix.DeployOptions }} --no-packager --no-autolink |
| 149 | + errorOnNuGetLockChanges: false # Sometimes the content hashes of NuGet packages are wrong on VMs, workaround for later .NET versions don't work for UWP C#. |
| 150 | + |
| 151 | + - script: yarn windows --release --no-build ${{ matrix.DeployOptions }} --no-packager --no-autolink --arch ${{ matrix.BuildPlatform }} --logging |
| 152 | + displayName: yarn windows --release --no-build |
137 | 153 | workingDirectory: packages/integration-test-app |
138 | 154 |
|
139 | 155 | - ${{ if ne(matrix.DeployOptions, '--no-deploy') }}: |
|
0 commit comments