Skip to content

Commit

Permalink
Merge pull request #61 from TEOS-10/wheel_take_4
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf authored Aug 27, 2020
2 parents 168ed91 + 6029255 commit 4f2161c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 19 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/actions/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

PYTHONS=("cp36-cp36m" "cp37-cp37m" "cp38-cp38")

for PYTHON in ${PYTHONS[@]}; do
/opt/python/${PYTHON}/bin/pip install --upgrade pip wheel setuptools setuptools_scm pep517 twine auditwheel
/opt/python/${PYTHON}/bin/pip install numpy==1.18
/opt/python/${PYTHON}/bin/python -m pep517.build --source --binary . --out-dir /github/workspace/wheelhouse/
done

for whl in /github/workspace/wheelhouse/gsw*.whl; do
auditwheel repair $whl
done
7 changes: 7 additions & 0 deletions .github/workflows/actions/manylinux2010_x86_64/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: 'build wheels with manylinux2010_x86_64'
description: 'build wheels with manylinux2010_x86_64'
runs:
using: 'docker'
image: docker://quay.io/pypa/manylinux2010_x86_64
args:
- .github/workflows/actions/entrypoint.sh
24 changes: 5 additions & 19 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,19 @@ on:

jobs:
packages:
name: Build wheel on ${{ matrix.os }} and ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.6, 3.7, 3.8]

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Get tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
shell: bash

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install build tools
- uses: ./.github/workflows/actions/manylinux2010_x86_64
- name: copy manylinux wheels
run: |
python -m pip install --upgrade pip wheel setuptools setuptools_scm pep517 twine
python -m pip install numpy==1.18
shell: bash

- name: Build binary wheel
run: python -m pep517.build --binary . --out-dir dist
mkdir dist
cp wheelhouse/gsw*-manylinux2010_x86_64.whl dist/
- name: CheckFiles
run: |
Expand Down

0 comments on commit 4f2161c

Please sign in to comment.