Update azure-pipelines-wheels.yml for Azure Pipelines
@@ -8,53 +8,19 @@ trigger:
pr: none
variables:
- name: versionWheels
- value: "1.6-3.7-alpine3.11"
- - group: wheels
+ value: '1.6.1-3.7-alpine3.11'
+resources:
+ repositories:
+ - repository: azure
+ type: github
+ name: 'home-assistant/ci-azure'
+ endpoint: 'home-assistant'
-jobs:
- - job: "Wheels"
- timeoutInMinutes: 360
- pool:
- vmImage: "ubuntu-latest"
- strategy:
- maxParallel: 5
- matrix:
- amd64:
- buildArch: "amd64"
- i386:
- buildArch: "i386"
- armhf:
- buildArch: "armhf"
- armv7:
- buildArch: "armv7"
- aarch64:
- buildArch: "aarch64"
- steps:
- - script: |
- sudo apt-get update
- sudo apt-get install -y --no-install-recommends \
- qemu-user-static \
- binfmt-support \
- curl
- sudo mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
- sudo update-binfmts --enable qemu-arm
- sudo update-binfmts --enable qemu-aarch64
- displayName: "Initial cross build"
- - script: |
- mkdir -p .ssh
- echo -e "-----BEGIN RSA PRIVATE KEY-----\n$(wheelsSSH)\n-----END RSA PRIVATE KEY-----" >> .ssh/id_rsa
- ssh-keyscan -H $(wheelsHost) >> .ssh/known_hosts
- chmod 600 .ssh/*
- displayName: "Install ssh key"
- - script: sudo docker pull homeassistant/$(buildArch)-wheels:$(versionWheels)
- displayName: "Install wheels builder"
- - script: |
- sudo docker run --rm -v $(pwd):/data:ro -v $(pwd)/.ssh:/root/.ssh:rw \
- homeassistant/$(buildArch)-wheels:$(versionWheels) \
- --apk "build-base;libffi-dev;openssl-dev" \
- --index $(wheelsIndex) \
- --requirement requirements.txt \
- --upload rsync \
- --remote wheels@$(wheelsHost):/opt/wheels
- displayName: "Run wheels build"
+jobs:
+- template: templates/azp-job-wheels.yaml@azure
+ parameters:
+ builderVersion: '$(versionWheels)'
+ builderApk: 'build-base;libffi-dev;openssl-dev'
+ builderPip: 'Cython'
+ wheelsRequirement: 'requirements.txt'
