Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Windows and macOS wheels. #82

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .github/workflows/cibw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,24 @@ jobs:
matrix:
include:
- os: 'ubuntu-latest'
cibw_archs_linux: "x86_64"
cibw_archs: "x86_64"
docker_py_container: "python"
name: 'ubuntu-x86_64'
build_sdist: true
- os: 'ubuntu-latest'
cibw_archs_linux: "aarch64"
cibw_archs: "aarch64"
docker_py_container: "arm64v8/python"
name: 'ubuntu-qemu-aarch64'
qemu: true
build_sdist: false
- os: 'windows-latest'
cibw_archs: "amd64"
name: 'windows-x86_64'
build_sdist: false
- os: 'macos-latest'
cibw_archs: "all"
name: 'macos'
build_sdist: false
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -39,14 +49,14 @@ jobs:

- name: Set up Python
# Only build sdists on x86_64
if: matrix.cibw_archs_linux == 'x86_64'
if: matrix.build_sdist
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'
if: matrix.build_sdist
run: |
python3 -m pip install build --user
python3 -m build --sdist --outdir dist/ ./python/
Expand All @@ -62,7 +72,7 @@ jobs:
env:
CIBW_SKIP: "*musllinux* cp36-* cp37-*"
CIBW_BUILD: "cp*"
CIBW_ARCHS_LINUX: ${{ matrix.cibw_archs_linux }}
CIBW_ARCHS: ${{ matrix.cibw_archs }}
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
CIBW_TEST_COMMAND: "pytest {package}/nvtx/tests"
Expand Down