mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
Update nightly.yaml
create build artifacts
This commit is contained in:
parent
c79477a939
commit
59853d070b
|
@ -180,6 +180,15 @@ stages:
|
||||||
- script: "pip install build git+https://github.com/rhelmot/auditwheel" # @TODO remove when patches make it upstream
|
- 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: "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 - <src/api/python/z3test.py z3 && python - <src/api/python/z3test.py z3num"
|
- script: "pip install ./src/api/python/wheelhouse/*.whl && python - <src/api/python/z3test.py z3 && python - <src/api/python/z3test.py z3num"
|
||||||
|
- task: CopyFiles@2
|
||||||
|
inputs:
|
||||||
|
sourceFolder: dist
|
||||||
|
contents: '*.zip'
|
||||||
|
targetFolder: $(Build.ArtifactStagingDirectory)
|
||||||
|
- task: PublishPipelineArtifact@0
|
||||||
|
inputs:
|
||||||
|
artifactName: 'ManyLinuxPythonBuildAMD64'
|
||||||
|
targetPath: $(Build.ArtifactStagingDirectory)
|
||||||
|
|
||||||
- job: ManyLinuxPythonBuildArm64
|
- job: ManyLinuxPythonBuildArm64
|
||||||
displayName: "Python bindings (manylinux Centos ARM64 cross) build"
|
displayName: "Python bindings (manylinux Centos ARM64 cross) build"
|
||||||
|
@ -201,33 +210,6 @@ stages:
|
||||||
- script: "stat `which aarch64-none-linux-gnu-gcc`"
|
- script: "stat `which aarch64-none-linux-gnu-gcc`"
|
||||||
- script: "pip install build git+https://github.com/rhelmot/auditwheel"
|
- script: "pip install build git+https://github.com/rhelmot/auditwheel"
|
||||||
- script: "cd src/api/python && CC=aarch64-none-linux-gnu-gcc CXX=aarch64-none-linux-gnu-g++ AR=aarch64-none-linux-gnu-ar LD=aarch64-none-linux-gnu-ld python -m build && AUDITWHEEL_PLAT= auditwheel repair --best-plat dist/*.whl && cd ../../.."
|
- script: "cd src/api/python && CC=aarch64-none-linux-gnu-gcc CXX=aarch64-none-linux-gnu-g++ AR=aarch64-none-linux-gnu-ar LD=aarch64-none-linux-gnu-ld python -m build && AUDITWHEEL_PLAT= auditwheel repair --best-plat dist/*.whl && cd ../../.."
|
||||||
# TODO copy artifacts
|
|
||||||
|
|
||||||
- job: LinuxBuilds
|
|
||||||
displayName: "ManyLinux build"
|
|
||||||
variables:
|
|
||||||
name: ManyLinux
|
|
||||||
python: "/opt/python/cp37-cp37m/bin/python"
|
|
||||||
pool:
|
|
||||||
vmImage: "ubuntu-latest"
|
|
||||||
container: "quay.io/pypa/manylinux_2_28_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)
|
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
inputs:
|
inputs:
|
||||||
sourceFolder: dist
|
sourceFolder: dist
|
||||||
|
@ -235,41 +217,9 @@ stages:
|
||||||
targetFolder: $(Build.ArtifactStagingDirectory)
|
targetFolder: $(Build.ArtifactStagingDirectory)
|
||||||
- task: PublishPipelineArtifact@0
|
- task: PublishPipelineArtifact@0
|
||||||
inputs:
|
inputs:
|
||||||
artifactName: 'ManyLinuxBuild'
|
artifactName: 'ManyLinuxPythonBuildArm64'
|
||||||
targetPath: $(Build.ArtifactStagingDirectory)
|
targetPath: $(Build.ArtifactStagingDirectory)
|
||||||
|
|
||||||
- job: LinuxBuildsArm64
|
|
||||||
displayName: "ManyLinux ARM64 build"
|
|
||||||
variables:
|
|
||||||
name: ManyLinux
|
|
||||||
python: "/opt/python/cp37-cp37m/bin/python"
|
|
||||||
pool:
|
|
||||||
vmImage: "ubuntu-latest"
|
|
||||||
container: "quay.io/pypa/manylinux_2_28_x86_64:latest"
|
|
||||||
steps:
|
|
||||||
- script: curl -L -o /tmp/arm-toolchain.tar.xz 'https://developer.arm.com/-/media/Files/downloads/gnu/11.2-2022.02/binrel/gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu.tar.xz?rev=33c6e30e5ac64e6dba8f0431f2c35f1b&hash=9918A05BF47621B632C7A5C8D2BB438FB80A4480'
|
|
||||||
- script: mkdir -p /tmp/arm-toolchain/
|
|
||||||
- script: tar xf /tmp/arm-toolchain.tar.xz -C /tmp/arm-toolchain/ --strip-components=1
|
|
||||||
- script: echo '##vso[task.prependpath]/tmp/arm-toolchain/bin'
|
|
||||||
- script: echo '##vso[task.prependpath]/tmp/arm-toolchain/aarch64-none-linux-gnu/libc/usr/bin'
|
|
||||||
- script: echo $PATH
|
|
||||||
- script: stat /tmp/arm-toolchain/bin/aarch64-none-linux-gnu-gcc
|
|
||||||
- task: PythonScript@0
|
|
||||||
displayName: Build
|
|
||||||
inputs:
|
|
||||||
scriptSource: 'filepath'
|
|
||||||
scriptPath: scripts/mk_unix_dist.py
|
|
||||||
arguments: --nodotnet --nojava --arch=arm64
|
|
||||||
pythonInterpreter: $(python)
|
|
||||||
- task: CopyFiles@2
|
|
||||||
inputs:
|
|
||||||
sourceFolder: dist
|
|
||||||
contents: '*.zip'
|
|
||||||
targetFolder: $(Build.ArtifactStagingDirectory)
|
|
||||||
- task: PublishPipelineArtifact@0
|
|
||||||
inputs:
|
|
||||||
artifactName: 'ManyLinuxBuildArm64'
|
|
||||||
targetPath: $(Build.ArtifactStagingDirectory)
|
|
||||||
|
|
||||||
- template: build-win-signed.yml
|
- template: build-win-signed.yml
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -536,11 +486,11 @@ stages:
|
||||||
targetPath: $(Agent.TempDirectory)
|
targetPath: $(Agent.TempDirectory)
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
inputs:
|
inputs:
|
||||||
artifactName: 'ManyLinuxBuild'
|
artifactName: 'ManyLinuxPythonBuildAMD64'
|
||||||
targetPath: $(Agent.TempDirectory)
|
targetPath: $(Agent.TempDirectory)
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
inputs:
|
inputs:
|
||||||
artifactName: 'ManyLinuxBuildArm64'
|
artifactName: 'ManyLinuxPythonBuildArm64'
|
||||||
targetPath: $(Agent.TempDirectory)
|
targetPath: $(Agent.TempDirectory)
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
inputs:
|
inputs:
|
||||||
|
|
Loading…
Reference in a new issue