Skip to content

Commit

Permalink
trying manylinux wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomsaraiva committed Sep 20, 2023
1 parent 8fccddd commit d1b9e29
Showing 1 changed file with 28 additions and 9 deletions.
37 changes: 28 additions & 9 deletions .github/workflows/buildtest_wheels_manylinux.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,35 @@
name: Build manylinux only
name: Build and Test Manylinux wheel

on: workflow_dispatch

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
name: Build wheels on Python ${{ matrix.python }}-${{ matrix.platform_id }}-${{ matrix.manylinux_image }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-20.04]
include:

- os: ubuntu-latest
python: 39
platform_id: manylinux_x86_64
manylinux_image: manylinux2010
- os: ubuntu-latest
python: 310
platform_id: manylinux_x86_64
manylinux_image: manylinux2010
- os: ubuntu-latest
python: 311
platform_id: manylinux_x86_64
manylinux_image: manylinux2010

steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

# Used to host cibuildwheel
- uses: actions/setup-python@v3
- name: Setup Python
uses: actions/setup-python@v4

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.15.0
Expand All @@ -23,9 +38,13 @@ jobs:
run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
env:
CIBW_BUILD_FRONTEND: "build"
CIBW_ENVIRONMENT_PASS_LINUX: "build"

CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
CIBW_ARCHS: all
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux_image }}
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.manylinux_image }}
CIBW_BUILD_VERBOSITY: 1
CIBW_TEST_COMMAND: "pytest {project}/tests"

- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl

0 comments on commit d1b9e29

Please sign in to comment.