Skip to content

Commit

Permalink
Update cibw.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shwina committed Sep 20, 2023
1 parent b68aaa9 commit 09e0d23
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/cibw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,37 @@ jobs:
name: 'ubuntu-qemu-aarch64'
qemu: true
steps:
- uses: actions/checkout@v2
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # unshallow fetch for setuptools-scm
ref: ${{ inputs.branchOrTag }}

- name: Set up Python
# Only build sdists on x86_64
if: matrix.cibw_archs_linux == 'x86_64'
uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: Build source distribution
# Only build sdists on x86_64
if: matrix.cibw_archs_linux == 'x86_64'
run: |
python3 -m pip install build --user
python3 -m build --sdist --outdir dist/ ./python/
- name: Set up QEMU
if: matrix.qemu
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Build wheels
uses: pypa/cibuildwheel@v2.4.0
uses: pypa/cibuildwheel@v2.15.0
env:
CIBW_SKIP: "*musllinux*"
CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-*"
CIBW_SKIP: "*musllinux* cp36-* cp37-*"
CIBW_BUILD: "cp*"
CIBW_ARCHS_LINUX: ${{ matrix.cibw_archs_linux }}
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
Expand All @@ -62,13 +78,13 @@ jobs:
for pyver in 3.8 3.9 3.10 3.11; do
docker run --rm \
-v $(pwd)/dist:/wheels \
${{ matrix.docker_py_container}}:$pyver-bullseye \
${{ matrix.docker_py_container }}:$pyver-bullseye \
sh -c \
"python3 -m pip install --verbose --find-links=file:///wheels --no-index nvtx && python3 -m pip check && python3 -c 'import nvtx; print(nvtx.annotate())';" ;\
done
- name: Upload distributions
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: dist
name: nvtx-wheels

0 comments on commit 09e0d23

Please sign in to comment.