3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-07 11:41:22 +00:00

add z3doc build to release script

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2021-07-11 23:26:48 +02:00
parent 2ccfb1937d
commit 4c53655be7

View file

@ -72,6 +72,43 @@ stages:
artifactName: 'UbuntuBuild' artifactName: 'UbuntuBuild'
targetPath: $(Build.ArtifactStagingDirectory) targetPath: $(Build.ArtifactStagingDirectory)
- job: UbuntuDoc
displayName: "Ubuntu Doc build"
pool:
vmImage: "Ubuntu-18.04"
steps:
- script: sudo apt-get install ocaml opam libgmp-dev
- script: sudo apt-get install doxygen
- script: sudo apt-get install graphviz
- script: opam init -y
- script: eval `opam config env`; opam install zarith ocamlfind -y
- script: python scripts/mk_make.py --ml --staticlib
- script: |
set -e
cd build
eval `opam config env`
make -j3
make -j3 examples
make -j3 test-z3
./ml_example
cd ..
- script: |
set -e
eval `opam config env`
cd doc
python mk_api_doc.py --mld --z3py-package-path=../build/python/z3
mkdir api/html/ml
ocamldoc -html -d api/html/ml -sort -hide Z3 -I $( ocamlfind query zarith ) -I ../build/api/ml ../build/api/ml/z3enums.mli ../build/api/ml/z3.mli
cd ..
- script: zip -r z3doc.zip doc/api
- script: cp z3doc.zip $(Build.ArtifactStagingDirectory)/.
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'UbuntuDoc'
targetPath: $(Build.ArtifactStagingDirectory)
- job: ManyLinuxBuild - job: ManyLinuxBuild
displayName: "ManyLinux build" displayName: "ManyLinux build"
pool: pool:
@ -283,6 +320,11 @@ stages:
inputs: inputs:
artifact: 'UbuntuBuild' artifact: 'UbuntuBuild'
path: $(Agent.TempDirectory) path: $(Agent.TempDirectory)
- task: DownloadPipelineArtifact@2
displayName: "Download Doc"
inputs:
artifact: 'UbuntuDoc'
path: $(Agent.TempDirectory)
- task: DownloadPipelineArtifact@2 - task: DownloadPipelineArtifact@2
displayName: 'Download macOS Build' displayName: 'Download macOS Build'
inputs: inputs:
@ -323,9 +365,9 @@ stages:
isDraft: true isDraft: true
isPreRelease: false isPreRelease: false
# Enable on release: # Enable on release (after fixing Nuget key)
- job: NuGetPublish - job: NuGetPublish
condition: eq(1,1) condition: eq(1,0)
displayName: "Publish to NuGet.org" displayName: "Publish to NuGet.org"
steps: steps:
- task: DownloadPipelineArtifact@2 - task: DownloadPipelineArtifact@2