Skip to content

Commit 59853d0

Browse files
Update nightly.yaml
create build artifacts
1 parent c79477a commit 59853d0

File tree

1 file changed

+14
-64
lines changed

1 file changed

+14
-64
lines changed

scripts/nightly.yaml

+14-64
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,15 @@ stages:
180180
- script: "pip install build git+https://github.com/rhelmot/auditwheel" # @TODO remove when patches make it upstream
181181
- script: "cd src/api/python && python -m build && AUDITWHEEL_PLAT= auditwheel repair --best-plat dist/*.whl && cd ../../.."
182182
- script: "pip install ./src/api/python/wheelhouse/*.whl && python - <src/api/python/z3test.py z3 && python - <src/api/python/z3test.py z3num"
183+
- task: CopyFiles@2
184+
inputs:
185+
sourceFolder: dist
186+
contents: '*.zip'
187+
targetFolder: $(Build.ArtifactStagingDirectory)
188+
- task: PublishPipelineArtifact@0
189+
inputs:
190+
artifactName: 'ManyLinuxPythonBuildAMD64'
191+
targetPath: $(Build.ArtifactStagingDirectory)
183192

184193
- job: ManyLinuxPythonBuildArm64
185194
displayName: "Python bindings (manylinux Centos ARM64 cross) build"
@@ -201,75 +210,16 @@ stages:
201210
- script: "stat `which aarch64-none-linux-gnu-gcc`"
202211
- script: "pip install build git+https://github.com/rhelmot/auditwheel"
203212
- 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 ../../.."
204-
# TODO copy artifacts
205-
206-
- job: LinuxBuilds
207-
displayName: "ManyLinux build"
208-
variables:
209-
name: ManyLinux
210-
python: "/opt/python/cp37-cp37m/bin/python"
211-
pool:
212-
vmImage: "ubuntu-latest"
213-
container: "quay.io/pypa/manylinux_2_28_x86_64:latest"
214-
steps:
215-
- task: PythonScript@0
216-
displayName: Build
217-
inputs:
218-
scriptSource: 'filepath'
219-
scriptPath: scripts/mk_unix_dist.py
220-
arguments: --nodotnet --nojava
221-
pythonInterpreter: $(python)
222-
- script: git clone https://github.com/z3prover/z3test z3test
223-
displayName: 'Clone z3test'
224-
- task: PythonScript@0
225-
displayName: Test
226-
inputs:
227-
scriptSource: 'filepath'
228-
scriptPath: z3test/scripts/test_benchmarks.py
229-
arguments: build-dist/z3 z3test/regressions/smt2
230-
pythonInterpreter: $(python)
231213
- task: CopyFiles@2
232214
inputs:
233215
sourceFolder: dist
234216
contents: '*.zip'
235217
targetFolder: $(Build.ArtifactStagingDirectory)
236218
- task: PublishPipelineArtifact@0
237219
inputs:
238-
artifactName: 'ManyLinuxBuild'
239-
targetPath: $(Build.ArtifactStagingDirectory)
240-
241-
- job: LinuxBuildsArm64
242-
displayName: "ManyLinux ARM64 build"
243-
variables:
244-
name: ManyLinux
245-
python: "/opt/python/cp37-cp37m/bin/python"
246-
pool:
247-
vmImage: "ubuntu-latest"
248-
container: "quay.io/pypa/manylinux_2_28_x86_64:latest"
249-
steps:
250-
- 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'
251-
- script: mkdir -p /tmp/arm-toolchain/
252-
- script: tar xf /tmp/arm-toolchain.tar.xz -C /tmp/arm-toolchain/ --strip-components=1
253-
- script: echo '##vso[task.prependpath]/tmp/arm-toolchain/bin'
254-
- script: echo '##vso[task.prependpath]/tmp/arm-toolchain/aarch64-none-linux-gnu/libc/usr/bin'
255-
- script: echo $PATH
256-
- script: stat /tmp/arm-toolchain/bin/aarch64-none-linux-gnu-gcc
257-
- task: PythonScript@0
258-
displayName: Build
259-
inputs:
260-
scriptSource: 'filepath'
261-
scriptPath: scripts/mk_unix_dist.py
262-
arguments: --nodotnet --nojava --arch=arm64
263-
pythonInterpreter: $(python)
264-
- task: CopyFiles@2
265-
inputs:
266-
sourceFolder: dist
267-
contents: '*.zip'
268-
targetFolder: $(Build.ArtifactStagingDirectory)
269-
- task: PublishPipelineArtifact@0
270-
inputs:
271-
artifactName: 'ManyLinuxBuildArm64'
272-
targetPath: $(Build.ArtifactStagingDirectory)
220+
artifactName: 'ManyLinuxPythonBuildArm64'
221+
targetPath: $(Build.ArtifactStagingDirectory)
222+
273223

274224
- template: build-win-signed.yml
275225
parameters:
@@ -536,11 +486,11 @@ stages:
536486
targetPath: $(Agent.TempDirectory)
537487
- task: DownloadPipelineArtifact@2
538488
inputs:
539-
artifactName: 'ManyLinuxBuild'
489+
artifactName: 'ManyLinuxPythonBuildAMD64'
540490
targetPath: $(Agent.TempDirectory)
541491
- task: DownloadPipelineArtifact@2
542492
inputs:
543-
artifactName: 'ManyLinuxBuildArm64'
493+
artifactName: 'ManyLinuxPythonBuildArm64'
544494
targetPath: $(Agent.TempDirectory)
545495
- task: DownloadPipelineArtifact@2
546496
inputs:

0 commit comments

Comments
 (0)