Skip to content

Commit

Permalink
refactor: try qemu branch
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Dec 3, 2020
1 parent 24ff737 commit 4fb2ffb
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ on:

env:
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.inputs.overrideVersion }}
CIBW_TEST_EXTRAS: test
CIBW_TEST_COMMAND: "pytest {project}/tests"


jobs:
Expand All @@ -29,32 +31,22 @@ jobs:
strategy:
fail-fast: false
matrix:
arch: [armv7, aarch64, s390x, ppc64le]
arch: [aarch64, s390x, ppc64le]

steps:
- uses: actions/checkout@v1
with:
submodules: true

- name: Build wheel
uses: uraimo/run-on-arch-action@v2.0.5
with:
arch: ${{ matrix.arch }}
distro: ubuntu20.04
# githubToken: ${{ github.token }}
install: |
apt-get update -q -y
apt-get install -q -y python3-pip
setup: |
mkdir -p "${PWD}/wheelhouse"
dockerRunArgs: |
--volume "${PWD}/wheelhouse:/wheelhouse"
env: |
CIBW_TEST_EXTRAS: test
CIBW_TEST_COMMAND: "pytest {project}/tests"
run: |
python3 -m pip install cibuildwheel==1.6.4
python3 -m cibuildwheel --output-dir wheelhouse
- uses: actions/setup-python@v2

- name: Install cibuildwheel
run: python -m pip install git+https://github.com/russkel/cibuildwheel@qemu

- name: cibuildwheel on archs
run: python -m cibuildwheel --output-dir wheelhouse --use-binfmt
env:
CIBW_BUILD: "*-manylinux_${{ matrix.arch }}"

- name: Show files
run: ls -lh wheelhouse
Expand Down

0 comments on commit 4fb2ffb

Please sign in to comment.