Skip to content

Commit

Permalink
build arm and ppc wheels in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Dec 7, 2020
1 parent 2bd0582 commit 61d0e07
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 24 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: cibuildwheel

on: [push, pull_request]
on:
push:
branches: [latest]
pull_request:
branches: [latest]
schedule:
- cron: "0 0 * * *" # daily

jobs:
build_wheels:
Expand Down
53 changes: 30 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
language: python
os: linux
dist: xenial
addons:
apt_packages:
- pandoc

cache:
directories:
Expand All @@ -14,8 +11,7 @@ cache:
if: |
(type = push AND (branch = latest)) OR \
(tag =~ ^v) OR \
(type = pull_request) OR \
(type = cron)
(type = pull_request)
script: tox -vv

Expand All @@ -26,21 +22,10 @@ before_script: pip install tox-travis

jobs:
include:
- &test
stage: test
python: 3.7.9
- <<: *test
python: 3.8
env:
- PYTHONDEVMODE=1
- <<: *test
os: osx
osx_image: xcode10.1
language: generic
env:
- TOXENV=py37
- <<: *test
- &test_ipfs
name: integration (ipfs/redis)
stage: test_ipfs
python: 3.7.9
before_install:
- |-
### Copied from https://github.com/ipfs-shipyard/py-ipfs-http-client/blob/master/.travis.yml
Expand Down Expand Up @@ -100,12 +85,34 @@ jobs:
services:
- redis
- docker
- <<: *test

- &wheel
stage: build wheel and send to github releases
python: 3.7.9
arch: arm64
services:
- docker
env:
- TOXENV=docs
- CIBW_BUILD: "'cp37-*'"
- CIBW_SKIP: "'*-win32 *-manylinux_i686'"
- CIBW_BEFORE_BUILD='source .travis/install_cargo.sh'
- CIBW_ENVIRONMENT='PATH="$HOME/.cargo/bin:$PATH"'
before_script:
- python3 -m pip install cibuildwheel==1.7.1
script:
- python3 -m cibuildwheel --output-dir wheelhouse
deploy:
provider: releases
token:
secure: "FZmx00gL0m0uNVN8fpvqbUZSI20EEk4sgrEv4wpGFr8SFNwPb/VuizQRTapeF2AW9qzbfbUv4bR/+oSKu5jxvd+7+p9HlOZT285a5yfxay9OA8YUbpQz4a9J0CETOpxrA2wRRWBDqzjEWzLTGUquOhyBZn4cwujvA9syOdB7OSNKsB6ARc+zhqPeoMKc9JcjzwiEIh7tcCHoZ1epN5zyfsjqFEY8XlylHTU/WSI3SS9KIGuBqWf6/haoYD7BH+f2g56GMHvBEmGjk5cf/lrCpqiho7Z3fGgJcYf3fRWM3qSVUM9JyHUIqPS6oPZIp7zP40TztiK4Oeen4EpcS/KdoSdu5CjfgMYgF/qdlL28ntgnVYhcA/6IDSRg6V4H3b20qjsn3NlaNVdsSNCu3GzkvM/dtvp5I/41XcFCNqMOljMr3tRw2ZVo44/1vYW0FB0b0FjhjNcnMyTOQjSRR78zetdoorewTJdEmxthMieHIw1Mqzwg4e6JvsC30sh1uSaFq4FHrj2Fe6lAlgwPs1e9vx4w0Zs0kxxusNAdbBB8FH8paFuUEGjgT0Jo9KHOLtvRy+OU2OacQePuhG1kGBRvJz7O4/prAFLGWIW8tyZDnMCuv1vmk6YZd6ih3omkL178X94pjzavtlUip/ugF0NIwS5o+zucRow9txAX2jXgDCM="
file_glob: true
file: wheelhouse/sourmash*.whl
skip_cleanup: true
on:
tags: true
- <<: *wheel
arch: ppc64le

stages:
- check
- test
- test_ipfs
- wheel

0 comments on commit 61d0e07

Please sign in to comment.