-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
61 lines (58 loc) · 1.57 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
jobs:
- job: "wheel_linux"
pool:
vmImage: "ubuntu-latest"
strategy:
matrix:
Python36:
python.version: "3.6"
Python37:
python.version: "3.7"
maxParallel: 2
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
- script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
rustup default nightly
python -m pip install pyo3-pack
pyo3-pack build --release --interpreter python
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'linux_wheel_$(python.version)'
targetPath: "target/wheels"
displayName: 'build the wheel files'
- job: "wheel_windows"
pool:
vmImage: "vs2017-win2016"
strategy:
matrix:
Python36:
python.version: "3.6"
Python37:
python.version: "3.7"
maxParallel: 2
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
- script: |
curl -sSf -o rustup-init.exe https://win.rustup.rs
rustup-init.exe -y
set PATH=%PATH%;%USERPROFILE%\.cargo\bin
rustup default nightly
python -m pip install pyo3-pack
pyo3-pack build --release --interpreter python
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'windows_wheel_$(python.version)'
targetPath: "target/wheels"
displayName: 'build the wheel files'