Skip to content

Commit dab82e8

Browse files
committed
add symbol generation and copy step in dummy release
1 parent 640bf3a commit dab82e8

1 file changed

Lines changed: 38 additions & 9 deletions

File tree

eng/pipelines/dummy-release-pipeline.yml

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,52 @@ jobs:
1212
# Strategy matrix to build all combinations
1313

1414
steps:
15-
- task: DownloadPipelineArtifact@2
15+
- task: UsePythonVersion@0
1616
inputs:
17-
buildType: 'specific'
18-
project: '$(System.TeamProject)'
19-
definition: 2162
20-
buildVersionToDownload: 'latest'
21-
artifactName: 'mssql-python-symbols'
22-
targetPath: '$(Build.ArtifactStagingDirectory)\all-pdbs'
23-
displayName: 'Download PDB files artifact from latest successful run'
17+
versionSpec: '3.13'
18+
architecture: 'x64'
19+
addToPath: true
20+
displayName: 'Use Python 3.13'
21+
22+
# Install required packages: pip, CMake, pybind11
23+
- script: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt
26+
pip install cmake pybind11
27+
displayName: 'Install dependencies'
28+
29+
# Generate the symbols for the mssql-python package using build.bat
30+
- script: |
31+
echo "Generating symbols for mssql-python package..."
32+
cd mssql_python\pybind
33+
build.bat
34+
cd ..
35+
dir /s /b
36+
displayName: 'Generate symbols for mssql-python package'
37+
38+
# Copy the generated symbols to the staging folder for artifacts
39+
- task: CopyFiles@2
40+
inputs:
41+
SourceFolder: '$(Build.SourcesDirectory)\mssql_python'
42+
Contents: '**\*.pdb'
43+
TargetFolder: '$(Build.ArtifactStagingDirectory)\mssql-python-symbols'
44+
displayName: 'Copy symbols to staging folder'
45+
46+
# Publish the symbols (only pdbs) as an artifact
47+
- task: PublishBuildArtifact@1
48+
displayName: 'Publish symbols as build artifact'
49+
inputs:
50+
PathtoPublish: '$(Build.ArtifactStagingDirectory)\mssql-python-symbols'
51+
ArtifactName: 'mssql-python-symbols'
52+
publishLocation: 'Container'
2453

2554
- powershell: 'Write-Host "##vso[task.setvariable variable=ArtifactServices.Symbol.AccountName;]SqlClientDrivers"'
2655
displayName: 'Update Symbol.AccountName with SqlClientDrivers'
2756

2857
- task: PublishSymbols@2
2958
displayName: 'Upload symbols to SqlClientDrivers org'
3059
inputs:
31-
SymbolsFolder: '$(Build.ArtifactStagingDirectory)\all-pdbs'
60+
SymbolsFolder: '$(Build.ArtifactStagingDirectory)\mssql-python-symbols'
3261
SearchPattern: '**/*.pdb'
3362
IndexSources: false
3463
SymbolServerType: TeamServices

0 commit comments

Comments
 (0)