diff --git a/scripts/nightly.yaml b/scripts/nightly.yaml index 33026b0df..d1c565883 100644 --- a/scripts/nightly.yaml +++ b/scripts/nightly.yaml @@ -10,7 +10,7 @@ stages: - stage: Build jobs: - job: MacBuild - displayName: "macOS Build" + displayName: "Mac Build" pool: vmImage: "macOS-latest" steps: @@ -35,7 +35,7 @@ stages: targetFolder: $(Build.ArtifactStagingDirectory) - task: PublishPipelineArtifact@0 inputs: - artifactName: 'macOSBuild' + artifactName: 'macOsBuild' targetPath: $(Build.ArtifactStagingDirectory) - job: MacBuildArm64 @@ -227,7 +227,7 @@ stages: artifact: 'WindowsBuild-x64' path: $(Agent.TempDirectory)\package - task: DownloadPipelineArtifact@2 - displayName: 'Download Ubuntu 20.04 Build' + displayName: 'Download Ubuntu Build' inputs: artifact: 'UbuntuBuild' path: $(Agent.TempDirectory)\package @@ -449,30 +449,36 @@ stages: pool: vmImage: "ubuntu-latest" steps: - - task: DownloadPipelineArtifact@2 - inputs: - artifactName: 'WindowsBuild-x86' - targetPath: $(Agent.TempDirectory) - - task: DownloadPipelineArtifact@2 - inputs: - artifactName: 'WindowsBuild-x64' - targetPath: $(Agent.TempDirectory) - - task: DownloadPipelineArtifact@2 - inputs: - artifactName: 'ManyLinuxPythonBuildAMD64' - targetPath: $(Agent.TempDirectory) - - task: DownloadPipelineArtifact@2 - inputs: - artifactName: 'ManyLinuxPythonBuildArm64' - targetPath: $(Agent.TempDirectory) - - task: DownloadPipelineArtifact@2 + - task: DownloadPipelineArtifact@2 + displayName: 'Download macOS Build' inputs: artifactName: 'macOsBuild' targetPath: $(Agent.TempDirectory) - task: DownloadPipelineArtifact@2 + displayName: 'Download macOS Arm64 Build' inputs: artifactName: 'MacArm64' targetPath: $(Agent.TempDirectory) + - task: DownloadPipelineArtifact@2 + displayName: 'Download Win64 Build' + inputs: + artifactName: 'WindowsBuild-x64' + targetPath: $(Agent.TempDirectory) + - task: DownloadPipelineArtifact@2 + displayName: 'Download Win32 Build' + inputs: + artifactName: 'WindowsBuild-x86' + targetPath: $(Agent.TempDirectory) + - task: DownloadPipelineArtifact@2 + displayName: 'Download ManyLinux Build' + inputs: + artifactName: 'ManyLinuxPythonBuildAMD64' + targetPath: $(Agent.TempDirectory) + - task: DownloadPipelineArtifact@2 + displayName: 'Download ManyLinux Arm64 Build' + inputs: + artifactName: 'ManyLinuxPythonBuildArm64' + targetPath: $(Agent.TempDirectory) - script: cd $(Agent.TempDirectory); mkdir osx-x64-bin; cd osx-x64-bin; unzip ../*x64-osx*.zip - script: cd $(Agent.TempDirectory); mkdir osx-arm64-bin; cd osx-arm64-bin; unzip ../*arm64-osx*.zip # - script: cd $(Agent.TempDirectory); mkdir musl-bin; cd musl-bin; unzip ../*-linux.zip diff --git a/scripts/release.yml b/scripts/release.yml index a5f356690..50ac4e31d 100644 --- a/scripts/release.yml +++ b/scripts/release.yml @@ -15,7 +15,7 @@ stages: jobs: - job: MacBuild - displayName: "macOS Build" + displayName: "Mac Build" pool: vmImage: "macOS-latest" steps: @@ -40,11 +40,11 @@ stages: targetFolder: $(Build.ArtifactStagingDirectory) - task: PublishPipelineArtifact@0 inputs: - artifactName: 'macOSBuild' + artifactName: 'macOsBuild' targetPath: $(Build.ArtifactStagingDirectory) - job: MacBuildArm64 - displayName: "macOS ARM64 Build" + displayName: "Mac ARM64 Build" pool: vmImage: "macOS-latest" steps: @@ -145,43 +145,29 @@ stages: artifactName: 'UbuntuDoc' targetPath: $(Build.ArtifactStagingDirectory) - - job: LinuxBuilds - displayName: "ManyLinux build" - variables: - name: ManyLinux - python: "/opt/python/cp37-cp37m/bin/python" + - job: "ManylinuxPythonBuildAmd64" + displayName: "Python bindings (manylinux Centos AMD64) build" pool: vmImage: "ubuntu-latest" container: "quay.io/pypa/manylinux2014_x86_64:latest" steps: - - 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 - displayName: 'Clone z3test' - - task: PythonScript@0 - displayName: Test - inputs: - scriptSource: 'filepath' - scriptPath: z3test/scripts/test_benchmarks.py - arguments: build-dist/z3 z3test/regressions/smt2 - pythonInterpreter: $(python) + - script: "/opt/python/cp38-cp38/bin/python -m venv $PWD/env" + - script: 'echo "##vso[task.prependpath]$PWD/env/bin"' + - script: "pip install build git+https://github.com/rhelmot/auditwheel" # @TODO remove when patches make it upstream + - script: "cd src/api/python && python -m build && AUDITWHEEL_PLAT= auditwheel repair --best-plat dist/*.whl && cd ../../.." + - script: "pip install ./src/api/python/wheelhouse/*.whl && python -