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

[APIScan] Scan extra symbols and update parameters #8812

Merged
merged 3 commits into from
Apr 3, 2024
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
17 changes: 11 additions & 6 deletions build-tools/automation/azure-pipelines-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,11 @@ stages:
timeoutInMinutes: 480
workspace:
clean: all
variables:
- name: ApiScanSoftwareName
value: VS
- name: ApiScanSoftwareVersion
value: 17.10
steps:
- template: /build-tools/automation/yaml-templates/setup-test-environment.yaml
parameters:
Expand All @@ -317,21 +322,21 @@ stages:
Contents: |
$(System.DefaultWorkingDirectory)\bin\$(XA.Build.Configuration)\dotnet\packs\Microsoft.Android*\**\?(*.dll|*.exe|*.pdb)
$(System.DefaultWorkingDirectory)\binutils-pdb\*.pdb
TargetFolder: $(Build.StagingDirectory)\apiscan
TargetFolder: $(Agent.TempDirectory)\T
OverWrite: true
flattenFolders: true

- pwsh: Get-ChildItem -Path "$(Build.StagingDirectory)\apiscan" -Recurse
- pwsh: Get-ChildItem -Path "$(Agent.TempDirectory)\T" -Recurse
displayName: List Files for APIScan

### Run latest version of APIScan listed at https://www.1eswiki.com/wiki/APIScan_Build_Task
- task: APIScan@2
displayName: Run APIScan
inputs:
softwareFolder: $(Build.StagingDirectory)\apiscan
symbolsFolder: 'SRV*http://symweb;$(Build.StagingDirectory)\apiscan'
softwareName: $(ApiScanName)
softwareVersionNum: $(Build.SourceBranchName)-$(Build.SourceVersion)$(System.JobAttempt)
softwareFolder: $(Agent.TempDirectory)\T
symbolsFolder: 'SRV*http://symweb;$(Agent.TempDirectory)\T'
softwareName: $(ApiScanSoftwareName)
softwareVersionNum: $(ApiScanSoftwareVersion)
isLargeApp: true
toolVersion: Latest
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ void CopyTools (string prefix)
Utilities.CopyFile (toolSourcePath, toolDestinationPath);
Utilities.CopyFile (toolSourcePdbPath, toolDestinationPdbPath);
}
// Copy PDB files for tools that have been renamed
if (isWindows) {
Utilities.CopyFile (Path.Combine (sourcePath, "lld.pdb"), Path.Combine (symbolArchiveDir, "lld.pdb"));
Utilities.CopyFile (Path.Combine (sourcePath, "llvm-objcopy.pdb"), Path.Combine (symbolArchiveDir, "llvm-objcopy.pdb"));
}
}
}

Expand Down
Loading