mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
Update nightly.yaml for Azure Pipelines (#7139)
* Update nightly.yaml for Azure Pipelines match nightly builds to release builds * Fix nightly.yaml * fix indent * fix indent * Update nightly.yaml * Update nightly.yaml * Update nightly.yaml for Azure Pipelines * Update nightly.yaml for Azure Pipelines --------- Co-authored-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
19f5e7ffea
commit
85425a6e08
|
@ -4,26 +4,41 @@ variables:
|
||||||
Patch: '6'
|
Patch: '6'
|
||||||
ReleaseVersion: $(Major).$(Minor).$(Patch)
|
ReleaseVersion: $(Major).$(Minor).$(Patch)
|
||||||
AssemblyVersion: $(Major).$(Minor).$(Patch).$(Build.BuildId)
|
AssemblyVersion: $(Major).$(Minor).$(Patch).$(Build.BuildId)
|
||||||
NightlyVersion: $(AssemblyVersion)-$(Build.DefinitionName)
|
NightlyVersion: $(AssemblyVersion)-$(Build.buildId)
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: Build
|
- stage: Build
|
||||||
jobs:
|
jobs:
|
||||||
- job: Mac
|
- job: MacBuild
|
||||||
displayName: "Mac Build"
|
displayName: "macOS Build"
|
||||||
pool:
|
pool:
|
||||||
vmImage: "macOS-11"
|
vmImage: "macOS-11"
|
||||||
steps:
|
steps:
|
||||||
- script: python scripts/mk_unix_dist.py --dotnet-key=$(Build.SourcesDirectory)/resources/z3.snk
|
- task: PythonScript@0
|
||||||
- script: git clone https://github.com/z3prover/z3test z3test
|
displayName: Build
|
||||||
- script: python z3test/scripts/test_benchmarks.py build-dist/z3 z3test/regressions/smt2
|
|
||||||
- script: cp dist/*.zip $(Build.ArtifactStagingDirectory)/.
|
|
||||||
- task: PublishPipelineArtifact@1
|
|
||||||
inputs:
|
inputs:
|
||||||
artifactName: 'Mac'
|
scriptSource: 'filepath'
|
||||||
|
scriptPath: scripts/mk_unix_dist.py
|
||||||
|
arguments: --dotnet-key=$(Build.SourcesDirectory)/resources/z3.snk
|
||||||
|
- script: git clone https://github.com/z3prover/z3test z3test
|
||||||
|
displayName: 'Clone z3test'
|
||||||
|
- task: PythonScript@0
|
||||||
|
displayName: Test
|
||||||
|
inputs:
|
||||||
|
scriptSource: 'filepath'
|
||||||
|
scriptPath: z3test/scripts/test_benchmarks.py
|
||||||
|
arguments: build-dist/z3 z3test/regressions/smt2
|
||||||
|
- task: CopyFiles@2
|
||||||
|
inputs:
|
||||||
|
sourceFolder: dist
|
||||||
|
contents: '*.zip'
|
||||||
|
targetFolder: $(Build.ArtifactStagingDirectory)
|
||||||
|
- task: PublishPipelineArtifact@0
|
||||||
|
inputs:
|
||||||
|
artifactName: 'macOSBuild'
|
||||||
targetPath: $(Build.ArtifactStagingDirectory)
|
targetPath: $(Build.ArtifactStagingDirectory)
|
||||||
|
|
||||||
- job: MacArm64
|
- job: MacBuildArm64
|
||||||
displayName: "Mac ARM64 Build"
|
displayName: "Mac ARM64 Build"
|
||||||
pool:
|
pool:
|
||||||
vmImage: "macOS-11"
|
vmImage: "macOS-11"
|
||||||
|
@ -36,67 +51,76 @@ stages:
|
||||||
artifactName: 'MacArm64'
|
artifactName: 'MacArm64'
|
||||||
targetPath: $(Build.ArtifactStagingDirectory)
|
targetPath: $(Build.ArtifactStagingDirectory)
|
||||||
|
|
||||||
- job: Ubuntu20
|
- job: UbuntuBuild
|
||||||
displayName: "Ubuntu20 build"
|
displayName: "Ubuntu build"
|
||||||
|
pool:
|
||||||
|
vmImage: "ubuntu-latest"
|
||||||
|
steps:
|
||||||
|
- task: PythonScript@0
|
||||||
|
displayName: Build
|
||||||
|
inputs:
|
||||||
|
scriptSource: 'filepath'
|
||||||
|
scriptPath: scripts/mk_unix_dist.py
|
||||||
|
arguments: --dotnet-key=$(Build.SourcesDirectory)/resources/z3.snk
|
||||||
|
- script: git clone https://github.com/z3prover/z3test z3test
|
||||||
|
displayName: 'Clone z3test'
|
||||||
|
- task: PythonScript@0
|
||||||
|
displayName: Test
|
||||||
|
inputs:
|
||||||
|
scriptSource: 'filepath'
|
||||||
|
scriptPath: z3test/scripts/test_benchmarks.py
|
||||||
|
arguments: build-dist/z3 z3test/regressions/smt2
|
||||||
|
- task: CopyFiles@2
|
||||||
|
inputs:
|
||||||
|
sourceFolder: dist
|
||||||
|
contents: '*.zip'
|
||||||
|
targetFolder: $(Build.ArtifactStagingDirectory)
|
||||||
|
- task: PublishPipelineArtifact@0
|
||||||
|
inputs:
|
||||||
|
artifactName: 'UbuntuBuild'
|
||||||
|
targetPath: $(Build.ArtifactStagingDirectory)
|
||||||
|
|
||||||
|
- job: UbuntuBuild20
|
||||||
|
displayName: "Ubuntu build 20"
|
||||||
pool:
|
pool:
|
||||||
vmImage: "ubuntu-20.04"
|
vmImage: "ubuntu-20.04"
|
||||||
steps:
|
steps:
|
||||||
- script: python scripts/mk_unix_dist.py --dotnet-key=$(Build.SourcesDirectory)/resources/z3.snk
|
- task: PythonScript@0
|
||||||
|
displayName: Build
|
||||||
|
inputs:
|
||||||
|
scriptSource: 'filepath'
|
||||||
|
scriptPath: scripts/mk_unix_dist.py
|
||||||
|
arguments: --dotnet-key=$(Build.SourcesDirectory)/resources/z3.snk
|
||||||
|
- script: git clone https://github.com/z3prover/z3test z3test
|
||||||
|
displayName: 'Clone z3test'
|
||||||
|
- task: PythonScript@0
|
||||||
|
displayName: Test
|
||||||
|
inputs:
|
||||||
|
scriptSource: 'filepath'
|
||||||
|
scriptPath: z3test/scripts/test_benchmarks.py
|
||||||
|
arguments: build-dist/z3 z3test/regressions/smt2
|
||||||
|
- task: CopyFiles@2
|
||||||
|
inputs:
|
||||||
|
sourceFolder: dist
|
||||||
|
contents: '*.zip'
|
||||||
|
targetFolder: $(Build.ArtifactStagingDirectory)
|
||||||
|
- task: PublishPipelineArtifact@0
|
||||||
|
inputs:
|
||||||
|
artifactName: 'UbuntuBuild20'
|
||||||
|
targetPath: $(Build.ArtifactStagingDirectory)
|
||||||
|
|
||||||
|
- job: UbuntuArm64
|
||||||
|
displayName: "Ubuntu ARM64 build"
|
||||||
|
pool:
|
||||||
|
vmImage: "ubuntu-latest"
|
||||||
|
steps:
|
||||||
|
- script: python scripts/mk_unix_dist.py --dotnet-key=$(Build.SourcesDirectory)/resources/z3.snk --arch=arm64
|
||||||
- script: git clone https://github.com/z3prover/z3test z3test
|
- script: git clone https://github.com/z3prover/z3test z3test
|
||||||
- script: python z3test/scripts/test_benchmarks.py build-dist/z3 z3test/regressions/smt2
|
- script: python z3test/scripts/test_benchmarks.py build-dist/z3 z3test/regressions/smt2
|
||||||
- script: cp dist/*.zip $(Build.ArtifactStagingDirectory)/.
|
- script: cp dist/*.zip $(Build.ArtifactStagingDirectory)/.
|
||||||
- task: PublishPipelineArtifact@0
|
- task: PublishPipelineArtifact@0
|
||||||
inputs:
|
inputs:
|
||||||
artifactName: 'Ubuntu-20.04'
|
artifactName: 'UbuntuArm64'
|
||||||
targetPath: $(Build.ArtifactStagingDirectory)
|
|
||||||
|
|
||||||
- job: UbuntuBuilds
|
|
||||||
displayName: "Ubuntu Builds"
|
|
||||||
pool:
|
|
||||||
vmImage: "ubuntu-latest"
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
arm64:
|
|
||||||
setupcmds: 'sudo apt update& sudo apt install gcc-arm-none-eabi gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu g++-aarch64-linux-gnu ninja-build -y'
|
|
||||||
buildenv: 'CXX=aarch64-linux-gnu-g++ CC=aarch64-linux-gnu-gcc'
|
|
||||||
arch: 'arm64'
|
|
||||||
name: 'z3-$(AssemblyVersion)-arm64-ubuntu-22'
|
|
||||||
compiler: 'aarch64-linux-gnu-g++-11'
|
|
||||||
x64:
|
|
||||||
setupcmds: 'sudo apt update& sudo apt install ninja-build -y'
|
|
||||||
buildenv: ''
|
|
||||||
arch: 'x64'
|
|
||||||
name: 'z3-$(AssemblyVersion)-x64-ubuntu-22'
|
|
||||||
compiler: 'g++'
|
|
||||||
steps:
|
|
||||||
- script: $(setupcmds)
|
|
||||||
- script: |
|
|
||||||
mkdir $(arch)
|
|
||||||
cd $(arch)
|
|
||||||
$(buildenv) cmake \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release\
|
|
||||||
-DCMAKE_CXX_COMPILER=$(compiler)\
|
|
||||||
-DZ3_BUILD_DOTNET_BINDINGS=ON\
|
|
||||||
-DZ3_INSTALL_DOTNET_BINDINGS=ON \
|
|
||||||
-DZ3_BUILD_JAVA_BINDINGS=ON\
|
|
||||||
-DZ3_INSTALL_JAVA_BINDINGS=ON\
|
|
||||||
-DZ3_JAVA_JAR_INSTALLDIR=bin\
|
|
||||||
-DZ3_JAVA_JNI_LIB_INSTALLDIR=bin\
|
|
||||||
-DZ3_BUILD_PYTHON_BINDINGS=ON\
|
|
||||||
-DZ3_INSTALL_PYTHON_BINDINGS=ON\
|
|
||||||
-DCMAKE_INSTALL_PYTHON_PKG_DIR=bin/python\
|
|
||||||
-DCMAKE_INSTALL_PREFIX=$(name)\
|
|
||||||
-G "Ninja" ../
|
|
||||||
ninja install
|
|
||||||
cp -r Microsoft.Z3 $(name)/bin/.
|
|
||||||
cp $(name)/lib/libz3.so $(name)/bin/.
|
|
||||||
rm -rf $(name)/lib
|
|
||||||
zip -r $(name).zip $(name)
|
|
||||||
cd ..
|
|
||||||
- script: cp $(arch)/*.zip $(Build.ArtifactStagingDirectory)/.
|
|
||||||
- task: PublishPipelineArtifact@0
|
|
||||||
inputs:
|
|
||||||
artifactName: 'ubuntu-$(arch)'
|
|
||||||
targetPath: $(Build.ArtifactStagingDirectory)
|
targetPath: $(Build.ArtifactStagingDirectory)
|
||||||
|
|
||||||
- job: UbuntuDoc
|
- job: UbuntuDoc
|
||||||
|
@ -135,35 +159,50 @@ stages:
|
||||||
artifactName: 'UbuntuDoc'
|
artifactName: 'UbuntuDoc'
|
||||||
targetPath: $(Build.ArtifactStagingDirectory)
|
targetPath: $(Build.ArtifactStagingDirectory)
|
||||||
|
|
||||||
- job: ManyLinuxBuild
|
- job: LinuxBuilds
|
||||||
variables:
|
|
||||||
python: "/opt/python/cp37-cp37m/bin/python"
|
|
||||||
name: ManyLinux
|
|
||||||
displayName: "ManyLinux build"
|
displayName: "ManyLinux build"
|
||||||
|
variables:
|
||||||
|
name: ManyLinux
|
||||||
|
python: "/opt/python/cp37-cp37m/bin/python"
|
||||||
pool:
|
pool:
|
||||||
vmImage: "ubuntu-latest"
|
vmImage: "ubuntu-latest"
|
||||||
container: "quay.io/pypa/manylinux2014_x86_64:latest"
|
container: "quay.io/pypa/manylinux2014_x86_64:latest"
|
||||||
steps:
|
steps:
|
||||||
- script: $(python) scripts/mk_unix_dist.py --nodotnet --nojava
|
- task: PythonScript@0
|
||||||
|
displayName: Build
|
||||||
|
inputs:
|
||||||
|
scriptSource: 'filepath'
|
||||||
|
scriptPath: scripts/mk_unix_dist.py
|
||||||
|
arguments: --nodotnet --nojava
|
||||||
|
pythonInterpreter: $(python)
|
||||||
- script: git clone https://github.com/z3prover/z3test z3test
|
- script: git clone https://github.com/z3prover/z3test z3test
|
||||||
- script: $(python) z3test/scripts/test_benchmarks.py build-dist/z3 z3test/regressions/smt2
|
displayName: 'Clone z3test'
|
||||||
- script: cp dist/*.zip $(Build.ArtifactStagingDirectory)/
|
- task: PythonScript@0
|
||||||
|
displayName: Test
|
||||||
|
inputs:
|
||||||
|
scriptSource: 'filepath'
|
||||||
|
scriptPath: z3test/scripts/test_benchmarks.py
|
||||||
|
arguments: build-dist/z3 z3test/regressions/smt2
|
||||||
|
pythonInterpreter: $(python)
|
||||||
|
- task: CopyFiles@2
|
||||||
|
inputs:
|
||||||
|
sourceFolder: dist
|
||||||
|
contents: '*.zip'
|
||||||
|
targetFolder: $(Build.ArtifactStagingDirectory)
|
||||||
- task: PublishPipelineArtifact@0
|
- task: PublishPipelineArtifact@0
|
||||||
inputs:
|
inputs:
|
||||||
artifactName: '$(name)Build'
|
artifactName: 'ManyLinuxBuild'
|
||||||
targetPath: $(Build.ArtifactStagingDirectory)
|
targetPath: $(Build.ArtifactStagingDirectory)
|
||||||
|
|
||||||
- template: build-win-signed-cmake.yml
|
- template: build-win-signed.yml
|
||||||
parameters:
|
|
||||||
ReleaseVersion: $(ReleaseVersion)
|
|
||||||
BuildArchitecture: 'x86'
|
|
||||||
VCArchitecture: 'x86'
|
|
||||||
|
|
||||||
- template: build-win-signed-cmake.yml
|
|
||||||
parameters:
|
parameters:
|
||||||
ReleaseVersion: $(ReleaseVersion)
|
ReleaseVersion: $(ReleaseVersion)
|
||||||
BuildArchitecture: 'x64'
|
BuildArchitecture: 'x64'
|
||||||
VCArchitecture: 'x64'
|
|
||||||
|
- template: build-win-signed.yml
|
||||||
|
parameters:
|
||||||
|
ReleaseVersion: $(ReleaseVersion)
|
||||||
|
BuildArchitecture: 'x86'
|
||||||
|
|
||||||
- template: build-win-signed-cmake.yml
|
- template: build-win-signed-cmake.yml
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -192,22 +231,17 @@ stages:
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
displayName: 'Download Ubuntu 20.04 Build'
|
displayName: 'Download Ubuntu 20.04 Build'
|
||||||
inputs:
|
inputs:
|
||||||
artifact: 'Ubuntu-20.04'
|
artifact: 'UbuntuBuild20'
|
||||||
path: $(Agent.TempDirectory)\package
|
path: $(Agent.TempDirectory)\package
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
displayName: 'Download Ubuntu ARM64 Build'
|
displayName: 'Download Ubuntu ARM64 Build'
|
||||||
inputs:
|
inputs:
|
||||||
artifact: 'ubuntu-arm64'
|
artifact: 'UbuntuArm64'
|
||||||
path: $(Agent.TempDirectory)\package
|
|
||||||
- task: DownloadPipelineArtifact@2
|
|
||||||
displayName: 'Download Ubuntu Build'
|
|
||||||
inputs:
|
|
||||||
artifact: 'ubuntu-x64'
|
|
||||||
path: $(Agent.TempDirectory)\package
|
path: $(Agent.TempDirectory)\package
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
displayName: 'Download macOS Build'
|
displayName: 'Download macOS Build'
|
||||||
inputs:
|
inputs:
|
||||||
artifact: 'Mac'
|
artifact: 'macOsBuild'
|
||||||
path: $(Agent.TempDirectory)\package
|
path: $(Agent.TempDirectory)\package
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
displayName: 'Download macOS Arm64 Build'
|
displayName: 'Download macOS Arm64 Build'
|
||||||
|
@ -427,7 +461,7 @@ stages:
|
||||||
targetPath: $(Agent.TempDirectory)
|
targetPath: $(Agent.TempDirectory)
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
inputs:
|
inputs:
|
||||||
artifactName: 'Mac'
|
artifactName: 'macOsBuild'
|
||||||
targetPath: $(Agent.TempDirectory)
|
targetPath: $(Agent.TempDirectory)
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -480,7 +514,7 @@ stages:
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
displayName: "Download Mac"
|
displayName: "Download Mac"
|
||||||
inputs:
|
inputs:
|
||||||
artifactName: 'Mac'
|
artifactName: 'macOsBuild'
|
||||||
targetPath: tmp
|
targetPath: tmp
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
displayName: "Download MacArm64"
|
displayName: "Download MacArm64"
|
||||||
|
@ -490,17 +524,12 @@ stages:
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
displayName: "Download Ubuntu Arm64"
|
displayName: "Download Ubuntu Arm64"
|
||||||
inputs:
|
inputs:
|
||||||
artifactName: 'ubuntu-arm64'
|
artifactName: 'UbuntuArm64'
|
||||||
targetPath: tmp
|
|
||||||
- task: DownloadPipelineArtifact@2
|
|
||||||
displayName: "Download Ubuntu"
|
|
||||||
inputs:
|
|
||||||
artifactName: 'ubuntu-x64'
|
|
||||||
targetPath: tmp
|
targetPath: tmp
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
displayName: "Download Ubuntu-20.04"
|
displayName: "Download Ubuntu-20.04"
|
||||||
inputs:
|
inputs:
|
||||||
artifactName: 'Ubuntu-20.04'
|
artifactName: 'UbuntuBuild20'
|
||||||
targetPath: tmp
|
targetPath: tmp
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
displayName: "Download Doc"
|
displayName: "Download Doc"
|
||||||
|
|
Loading…
Reference in a new issue