Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] Upload test assemblies after signing #7241

Merged
merged 1 commit into from
Aug 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build-tools/automation/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ stages:
vmImage: $(MacBuildPoolImage)
${{ if eq(variables['MacBuildPoolName'], 'VSEng-Xamarin-RedmondMac-Android-Untrusted') }}:
demands: macOS.Name -equals Monterey
timeoutInMinutes: 180
timeoutInMinutes: 240
cancelTimeoutInMinutes: 5
workspace:
clean: all
Expand Down
39 changes: 20 additions & 19 deletions build-tools/automation/yaml-templates/commercial-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,29 +49,11 @@ steps:
workingDirectory: ${{ parameters.xaSourcePath }}
displayName: make jenkins

- task: PublishPipelineArtifact@1
displayName: upload build tools inventory
inputs:
artifactName: BuildToolsInventory
targetPath: ${{ parameters.xaSourcePath }}/bin/Build$(XA.Build.Configuration)/buildtoolsinventory.csv

# Build and package test assemblies
# Build test assemblies
- script: make all-tests CONFIGURATION=$(XA.Build.Configuration)
workingDirectory: ${{ parameters.xaSourcePath }}
displayName: make all-tests

- script: >
cp -r bin/$(XA.Build.Configuration)/bcl-tests bin/Test$(XA.Build.Configuration)/bcl-tests &&
cp bin/Build$(XA.Build.Configuration)/ProfileAssemblies.projitems bin/Test$(XA.Build.Configuration)/bcl-tests/
workingDirectory: ${{ parameters.xaSourcePath }}
displayName: copy bcl-tests assemblies

- task: PublishPipelineArtifact@1
displayName: upload test assemblies
inputs:
artifactName: $(TestAssembliesArtifactName)
targetPath: ${{ parameters.xaSourcePath }}/bin/Test$(XA.Build.Configuration)

# Restore needs to be executed first or MicroBuild targets won't be imported in time
- task: MSBuild@1
displayName: msbuild /t:Restore sign-content.proj
Expand Down Expand Up @@ -119,3 +101,22 @@ steps:
inputs:
artifactName: $(InstallerArtifactName)
targetPath: ${{ parameters.xaSourcePath }}/bin/Build$(XA.Build.Configuration)/$(InstallerArtifactName)

# Upload test assemblies
- script: >
cp -r bin/$(XA.Build.Configuration)/bcl-tests bin/Test$(XA.Build.Configuration)/bcl-tests &&
cp bin/Build$(XA.Build.Configuration)/ProfileAssemblies.projitems bin/Test$(XA.Build.Configuration)/bcl-tests/
workingDirectory: ${{ parameters.xaSourcePath }}
displayName: copy bcl-tests assemblies

- task: PublishPipelineArtifact@1
displayName: upload test assemblies
inputs:
artifactName: $(TestAssembliesArtifactName)
targetPath: ${{ parameters.xaSourcePath }}/bin/Test$(XA.Build.Configuration)

- task: PublishPipelineArtifact@1
displayName: upload build tools inventory
inputs:
artifactName: BuildToolsInventory
targetPath: ${{ parameters.xaSourcePath }}/bin/Build$(XA.Build.Configuration)/buildtoolsinventory.csv