Skip to content

Commit

Permalink
update for nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Dec 20, 2020
1 parent 4039785 commit e8b506a
Showing 1 changed file with 39 additions and 15 deletions.
54 changes: 39 additions & 15 deletions scripts/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,40 @@ jobs:
cd scripts
python mk_nuget_task.py ../tmp $(z3Version) $(Build.SourceVersion)
cd ..
# - task: NuGetCommand@2
# inputs:
# command: pack
# packagesToPack: scripts/out/*.nuspec
# packDestination: $(Build.ArtifactStagingDirectory)
# - task: NuGetCommand@2
# inputs:
# command: 'pack'
# packagesToPack: scripts/out/*.nuspec
# includesymbols: true
# packDestination: $(Build.ArtifactStagingDirectory)
- task: PythonScript@0
displayName: 'Python: assemble files'
inputs:
scriptSource: 'filepath'
scriptPath: scripts\mk_nuget_task.py
workingDirectory: $(Agent.TempDirectory)\package
arguments:
$(Agent.TempDirectory)\package
$(ReleaseVersion)
$(Build.Repository.Uri)
$(Build.SourceBranchName)
$(Build.SourceVersion)
$(Build.SourcesDirectory)
- task: NuGetToolInstaller@0
inputs:
versionSpec: 5.x
checkLatest: false
- task: NugetCommand@2
displayName: 'NuGet Pack'
inputs:
command: pack
packagesToPack: $(Agent.TempDirectory)\package\out\Microsoft.Z3.x64.nuspec
basePath: $(Agent.TempDirectory)\package\out
packDestination: $(Build.ArtifactStagingDirectory)
verbosityPack: detailed
- task: NugetCommand@2
displayName: 'NuGet Pack Symbols'
inputs:
command: pack
packagesToPack: $(Agent.TempDirectory)\package\out\Microsoft.Z3.x64.nuspec
basePath: $(Agent.TempDirectory)\package\out
packDestination: $(Build.ArtifactStagingDirectory)
verbosityPack: detailed
includeSymbols: true
# Not available as a task?
# - script: |
Expand Down Expand Up @@ -190,6 +213,7 @@ jobs:
- Windows32
- Windows64
- Python
- NuGet
steps:
- task: DownloadPipelineArtifact@0
inputs:
Expand All @@ -211,10 +235,10 @@ jobs:
inputs:
artifactName: 'Python packages'
targetPath: tmp
# - task: DownloadPipelineArtifact@0
# inputs:
# artifactName: 'NuGet'
# targetPath: tmp
- task: DownloadPipelineArtifact@0
inputs:
artifactName: 'NuGet'
targetPath: tmp
- task: GitHubRelease@0
inputs:
gitHubConnection: Z3GitHub
Expand Down

0 comments on commit e8b506a

Please sign in to comment.